LttPClient: prevent crash when trying to access sys.stdin

This commit is contained in:
Fabian Dill
2021-09-01 17:56:19 +02:00
parent e9d1dcc46c
commit ca3e01b15e
3 changed files with 4 additions and 8 deletions

View File

@@ -920,7 +920,7 @@ async def main():
meta, romfile = Patch.create_rom_file(args.diff_file)
args.connect = meta["server"]
logging.info(f"Wrote rom file to {romfile}")
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile)
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile, gui_enabled)
if adjusted:
try:
shutil.move(adjustedromfile, romfile)