Fix --no-gui PySide dependency issue on non-Windows OS (#653)

This commit is contained in:
Etoh 2024-01-02 22:46:25 +00:00 committed by GitHub
parent b8de12f40e
commit 2dd3875a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if "QT_PREFERRED_BINDING" not in os.environ:
if not isWindowsConsole():
try:
from syncplay.ui.gui import MainWindow as GraphicalUI
except ImportError:
except (ImportError, AttributeError) as e:
pass
from syncplay.ui.consoleUI import ConsoleUI