Skip to content

Commit

Permalink
Merge pull request #1 from asajohnson/patch-1
Browse files Browse the repository at this point in the history
Changed Error to Exception
  • Loading branch information
Jim Bennett authored Apr 15, 2020
2 parents 09bd112 + 1e523ae commit eb3a751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def register_device():
try:
desired_colour = twin['reported']['colour']
set_colour(desired_colour)
except Error:
except Exception as ex:
print("Couldn't load twin,")

# listen for commands
Expand Down Expand Up @@ -109,4 +109,4 @@ async def main_loop():
await device_client.disconnect()

if __name__ == '__main__':
asyncio.run(main())
asyncio.run(main())

0 comments on commit eb3a751

Please sign in to comment.