Skip to content

Commit

Permalink
Fix crash when creating a bottle (#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinsteen authored Feb 20, 2023
1 parent 723133c commit 59eb758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bottles/backend/wine/reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def import_bundle(self, bundle: dict):
winedbg.wait_for_process("reg.exe")

res = self.launch(args, communicate=True, minimal=True, action_name="import_bundle")
logging.info(f"Import bundle result: '{res.decode('utf-8')}'")
# TODO: temp fix because res is sometimes a string, sometimes bytes...
# logging.info(f"Import bundle result: '{res.decode('utf-8')}'")

# remove reg file
os.remove(reg_file)

0 comments on commit 59eb758

Please sign in to comment.