Skip to content

Commit

Permalink
Don't crash if SC2 is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelseeger committed Jul 22, 2024
1 parent bdc9d24 commit 7cbb23f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions obs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ def main():
while True:
ui = sc2client.get_screens()

if ui is None:
print("SC2 not running?")
sleep(5)
continue

if len(ui.activeScreens) and Screen.loading in ui.activeScreens:
print(Screen.loading)

Expand Down

0 comments on commit 7cbb23f

Please sign in to comment.