Skip to content

Commit

Permalink
Remove asyncio as it's now a standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
SavageCore committed Jan 30, 2025
1 parent 484567b commit 1fa95e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def get_todo_list_items(self):
]
else:
raise Exception(f"Failed to get items: {response_data.get('error')}")
except websockets.ConnectionClosed as e:
except websockets.exceptions.ConnectionClosed as e:
self.logger.error(f"Connection closed while fetching items: {e}")
await self.connect_with_retries() # Attempt to reconnect
return await self.get_todo_list_items() # Retry fetching items
Expand Down Expand Up @@ -145,7 +145,7 @@ async def add_todo_list_item(self, item_name):
response_data = json.loads(response)
if response_data.get("success") is False:
raise Exception(f"Failed to add item: {response_data.get('error')}")
except websockets.ConnectionClosed as e:
except websockets.exceptions.ConnectionClosed as e:
self.logger.error(f"Connection closed while adding item: {e}")
await self.connect_with_retries() # Attempt to reconnect
await self.add_todo_list_item(item_name, id) # Retry adding the item
Expand Down
1 change: 0 additions & 1 deletion alexa_shopping_list_sync/app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ black==24.10.0
pyotp===2.9.0
flask===3.1.0
hypercorn===0.17.3
asyncio===3.4.3
websockets===14.1
apscheduler===3.10.4

0 comments on commit 1fa95e0

Please sign in to comment.