Browse Source

Don't abort app when exception is thrown

tags/v0.9.0
falkTX 6 years ago
parent
commit
57062ef0e0
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/shared.py

+ 8
- 0
src/shared.py View File

@@ -74,6 +74,14 @@ try:
except:
haveSignal = False

# ------------------------------------------------------------------------------------------------------------
# Safe exception hook, needed for PyQt5

def sys_excepthook(typ, value, tback):
return sys.__excepthook__(typ, value, tback)

sys.excepthook = sys_excepthook

# ------------------------------------------------------------------------------------------------------------
# Set Version



Loading…
Cancel
Save