Do still print exception but only register on startup
This commit is contained in:
parent
cc1a84a26b
commit
9cc9f65767
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
|
@ -65,7 +65,8 @@ def call():
|
||||||
|
|
||||||
# authorize guest after a certain amount of time
|
# authorize guest after a certain amount of time
|
||||||
unifi.authorize_guest(id, 1)
|
unifi.authorize_guest(id, 1)
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(f"Exception: {e}")
|
||||||
sleep(5)
|
sleep(5)
|
||||||
|
|
||||||
def call_phone(hostname, acc):
|
def call_phone(hostname, acc):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue