Skip to content

Commit eb3a751

Browse files
author
Jim Bennett
authored
Merge pull request #1 from asajohnson/patch-1
Changed Error to Exception
2 parents 09bd112 + 1e523ae commit eb3a751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def register_device():
6262
try:
6363
desired_colour = twin['reported']['colour']
6464
set_colour(desired_colour)
65-
except Error:
65+
except Exception as ex:
6666
print("Couldn't load twin,")
6767

6868
# listen for commands
@@ -109,4 +109,4 @@ async def main_loop():
109109
await device_client.disconnect()
110110

111111
if __name__ == '__main__':
112-
asyncio.run(main())
112+
asyncio.run(main())

0 commit comments

Comments
 (0)