fixed connection type exception
This commit is contained in:
parent
0f21b25fa4
commit
8c877a8b0a
1 changed files with 1 additions and 12 deletions
|
@ -543,7 +543,6 @@ class CustomWindow(QMainWindow):
|
|||
config["logging"]["gui_logging_enabled"] = False
|
||||
self._save_gui_config(config)
|
||||
|
||||
sys.excepthook = sys.__excepthook__
|
||||
|
||||
def _setup_gui_logging(self):
|
||||
os.makedirs(self.gui_dir, exist_ok=True)
|
||||
|
@ -562,19 +561,10 @@ class CustomWindow(QMainWindow):
|
|||
logger.handlers = []
|
||||
logger.addHandler(file_handler)
|
||||
|
||||
sys.excepthook = self._handle_uncaught_exception
|
||||
|
||||
if not os.path.exists(self.gui_log_file) or os.path.getsize(self.gui_log_file) == 0:
|
||||
logging.info("GUI logging system initialized")
|
||||
|
||||
def _handle_uncaught_exception(self, exc_type, exc_value, exc_traceback):
|
||||
logging.error(
|
||||
f"Uncaught exception:\n"
|
||||
f"Type: {exc_type.__name__}\n"
|
||||
f"Value: {str(exc_value)}\n"
|
||||
f"Traceback:\n{''.join(traceback.format_tb(exc_traceback))}"
|
||||
)
|
||||
sys.__excepthook__(exc_type, exc_value, exc_traceback)
|
||||
|
||||
def set_tor_icon(self):
|
||||
if self.is_tor_mode:
|
||||
|
@ -855,13 +845,12 @@ class CustomWindow(QMainWindow):
|
|||
def clear_data(self):
|
||||
self._data = {"Profile_1": {}}
|
||||
|
||||
def update_status(self, text, clear=False, is_downloading=False):
|
||||
def update_status(self, text, clear=False):
|
||||
if text is None:
|
||||
self.status_label.setText('Status:')
|
||||
self.disable_marquee()
|
||||
return
|
||||
|
||||
|
||||
if clear:
|
||||
self.status_label.setText('')
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue