Don't display gui error when running from cli on Windows
This commit is contained in:
parent
c17b8d53d3
commit
4ad5c065f1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue