Skip to content

Commit

Permalink
Don't display gui error when running from cli on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Sep 4, 2020
1 parent c17b8d5 commit 4ad5c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeronet.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main():
traceback.print_exc(file=open(error_log_path, "w"))
print("---")
print("Please report it: https://github.com/HelloZeroNet/ZeroNet/issues/new?assignees=&labels=&template=bug-report.md")
if sys.platform.startswith("win"):
if sys.platform.startswith("win") and "python.exe" not in sys.executable:
displayErrorMessage(err, error_log_path)

if main and (main.update_after_shutdown or main.restart_after_shutdown): # Updater
Expand Down

0 comments on commit 4ad5c06

Please sign in to comment.