Fix pyinstaller build
Fix exception when PyQt is not installed
This commit is contained in:
parent
4b93262d5f
commit
96c5c4aa28
@ -82,13 +82,14 @@ try:
|
||||
return True
|
||||
return super().event(event)
|
||||
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
|
||||
def show_exception_box(log_msg: str) -> None:
|
||||
...
|
||||
|
||||
logger.exception("Qt unavailable")
|
||||
qt_available = False
|
||||
import_error = e
|
||||
|
||||
|
||||
def open_tagger_window(
|
||||
|
@ -217,6 +217,8 @@ class App:
|
||||
try:
|
||||
from comictaggerlib import gui
|
||||
|
||||
if not gui.qt_available:
|
||||
raise gui.import_error
|
||||
return gui.open_tagger_window(talkers, self.config, error)
|
||||
except ImportError:
|
||||
self.config[0].Runtime_Options_no_gui = True
|
||||
|
Loading…
Reference in New Issue
Block a user