Skip to content

Commit

Permalink
complete example update to remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmeghead committed Jul 27, 2024
1 parent 92c763a commit d447c5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/visonic/examples/complete_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,8 @@ def help():
print("Here ZZZZZZZ")

except Exception as e:
print("Got an exception")
print(e.message)
#print("Got an exception")
#print(e.message)
# Get current system exception
ex_type, ex_value, ex_traceback = sys.exc_info()

Expand All @@ -887,8 +887,8 @@ def help():
def handle_exception(loop, context):
# context["message"] will always be there; but context["exception"] may not
msg = context.get("exception", context["message"])
print(f"Caught exception: {msg}")
print(f" {context}")
#print(f"Caught exception: {msg}")
#print(f" {context}")
asyncio.create_task(shutdown(loop))

async def shutdown(loop, signal=None):
Expand Down

0 comments on commit d447c5d

Please sign in to comment.