+8
-6
lines changedFilter options
+8
-6
lines changed Original file line number Diff line number Diff line change
@@ -87,19 +87,21 @@ def init_plugins(cls) -> None:
87
87
try:
88
88
cls.load_plugin(plugin_name, plugin_path)
89
89
except Exception as exc:
90
-
# @TODO: have no clue why gtk dialogs stopped working here,
91
-
# but guess that's just gtk traditions to break things once in a while
92
-
print(f"error loading {plugin_name}:")
93
-
error_dialog = Gtk.MessageDialog()
94
-
error_dialog.text = translate('Error loading plugin "{plugin_name}"').format(
90
+
message_header = translate('Error loading plugin "{plugin_name}"').format(
95
91
plugin_name=plugin_name
96
92
)
97
-
error_dialog.secondary_text = (
93
+
message_text = (
98
94
plugin_path +
99
95
":\n" + '\n'.join([str(arg) for arg in exc.args]) +
100
96
'\n' * 2 +
101
97
traceback.format_exc()
102
98
)
99
+
# @TODO: have no clue why gtk dialogs stopped working here,
100
+
# but guess that's just gtk traditions to break things once in a while
101
+
print(f"{message_header}\n{message_text}")
102
+
error_dialog = Gtk.MessageDialog()
103
+
error_dialog.text = message_header
104
+
error_dialog.secondary_text = message_text
103
105
error_dialog.buttons = Gtk.ButtonsType.CLOSE
104
106
error_dialog.run()
105
107
error_dialog.destroy()
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4