Minor fixes that came over BM
- typo in quit confirmation dialog - nicer traceback in unhandled exceptions
This commit is contained in:
parent
48c0a2ae2e
commit
6c224447a6
|
@ -2618,7 +2618,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
QtGui.QMessageBox.Yes|QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel)
|
QtGui.QMessageBox.Yes|QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel)
|
||||||
if reply == QtGui.QMessageBox.No:
|
if reply == QtGui.QMessageBox.No:
|
||||||
waitForPow = False
|
waitForPow = False
|
||||||
elif reply == QtGui.QMessage.Cancel:
|
elif reply == QtGui.QMessageBox.Cancel:
|
||||||
return
|
return
|
||||||
|
|
||||||
if PendingDownloadQueue.totalSize() > 0:
|
if PendingDownloadQueue.totalSize() > 0:
|
||||||
|
|
|
@ -20,7 +20,6 @@ import logging
|
||||||
import logging.config
|
import logging.config
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
|
||||||
import helper_startup
|
import helper_startup
|
||||||
import state
|
import state
|
||||||
helper_startup.loadConfig()
|
helper_startup.loadConfig()
|
||||||
|
@ -30,8 +29,7 @@ helper_startup.loadConfig()
|
||||||
log_level = 'WARNING'
|
log_level = 'WARNING'
|
||||||
|
|
||||||
def log_uncaught_exceptions(ex_cls, ex, tb):
|
def log_uncaught_exceptions(ex_cls, ex, tb):
|
||||||
logging.critical(''.join(traceback.format_tb(tb)))
|
logging.critical('Unhandled exception', exc_info=(ex_cls, ex, tb))
|
||||||
logging.critical('{0}: {1}'.format(ex_cls, ex))
|
|
||||||
|
|
||||||
def configureLogging():
|
def configureLogging():
|
||||||
have_logging = False
|
have_logging = False
|
||||||
|
|
Reference in New Issue
Block a user