Skip to content

Commit

Permalink
makes it so that when sm varia calls stdout to print dots every time …
Browse files Browse the repository at this point in the history
…it retries it doesn't crash on frozen installs (where it doesn't exist) (ArchipelagoMW#16)
  • Loading branch information
qwint authored Aug 16, 2024
1 parent 4ea84d8 commit c27708e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worlds/tracker/TrackerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# webserver imports
import urllib.parse

if not sys.stdout: # to make sure sm varia's "i'm working" dots don't break UT in frozen
sys.stdout = open(os.devnull, 'w') # from https://stackoverflow.com/a/6735958

logger = logging.getLogger("Client")

DEBUG = False
Expand Down

0 comments on commit c27708e

Please sign in to comment.