Skip to content

Commit

Permalink
Add a try-except around dodo query
Browse files Browse the repository at this point in the history
Again, a temporary solution to catch a failed sounddevice import
  • Loading branch information
mjsutcliffe99 authored Aug 2, 2024
1 parent b56a00c commit 1ad2b75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zxlive/edit_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,7 @@ def _dodo_hint(self) -> None:
action_dodo_hint(self.graph_scene.g)

def _dodo_query(self) -> None:
action_dodo_query(self.graph_scene.g)
try:
action_dodo_query(self.graph_scene.g)
except:
print("DODO Query failed. Check if API key is valid and sounddevice was properly imported.") #TEMP

0 comments on commit 1ad2b75

Please sign in to comment.