Skip to content

919102: fix gtk ui crash when offline

This fixes #919102 and its duplicate 961092.

  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1765, in func
     args, kwargs = op.sync_pre_operation(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1051, in sync_pre_operation
    error_dialog("Unable to connect to %s BTS." % sysinfo['name'])
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 137, in error_dialog
    _assert_context(ui_context)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 92, in _assert_context
    (_describe_context(really), _describe_context(expected)))
AssertionError: Function should be called in <MainContext of reportbug thread> but was called in <MainContext of UI thread>

It also makes the three reportbug UIs behave the same to the user when the BTS cannot be reached.

Merge request reports

Loading