qcanvas 2.0.7__py3-none-any.whl → 2.0.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qcanvas might be problematic. Click here for more details.

@@ -177,12 +177,18 @@ class QCanvasWindow(QMainWindow):
177
177
  except Exception as e:
178
178
  _logger.warning("Sync failed", exc_info=e)
179
179
  error = QErrorMessage(self)
180
- msg = str(e)
181
180
 
182
- if isinstance(e, httpx.ConnectError):
183
- msg = "You may not be connected to the internet\n - " + msg
181
+ if isinstance(e, ExceptionGroup):
182
+ msg = "\n".join(str(ex) for ex in e.exceptions)
183
+ elif isinstance(e, httpx.ConnectError):
184
+ msg = "You may not be connected to the Internet"
185
+ else:
186
+ msg = str(e)
184
187
 
185
- error.showMessage(msg)
188
+ error.setWindowTitle("An error has occurred in QCanvas")
189
+ error.showMessage(
190
+ msg + " - Please check the log for more details", "sync error"
191
+ )
186
192
  finally:
187
193
  self._operation_semaphore.release()
188
194
  self._sync_button.setText("Synchronise")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qcanvas
3
- Version: 2.0.7
3
+ Version: 2.0.8
4
4
  Summary: View courses from Canvas LMS
5
5
  Author: QCanvas
6
6
  Author-email: QCanvas@noreply.codeberg.org
@@ -49,7 +49,7 @@ qcanvas/ui/qcanvas_window/options/auto_download_resources_option.py,sha256=oeVdU
49
49
  qcanvas/ui/qcanvas_window/options/quick_sync_option.py,sha256=16zEFL__JRi-wE7Q99_Bqi-OHEBhRgf5QlnVUOUX3Eg,833
50
50
  qcanvas/ui/qcanvas_window/options/sync_on_start_option.py,sha256=gL_FIulULN1uGBJJWgUszyjayQDw5WfppjoErbM3850,773
51
51
  qcanvas/ui/qcanvas_window/options/theme_selection_menu.py,sha256=VMx79H45R7lcpMFpaN8eohbCxkQkq43MdH8W0nt2aTQ,1434
52
- qcanvas/ui/qcanvas_window/qcanvas_window.py,sha256=VaIx3HE0HkC4NE1BNOh8k-Tu-8zQif4KJ5w9vEOlImY,9021
52
+ qcanvas/ui/qcanvas_window/qcanvas_window.py,sha256=qNRtV2jIuhLEw2MWgKUxBYHDa9IFg65nA5e6XFr1nIM,9302
53
53
  qcanvas/ui/qcanvas_window/status_bar_progress_display.py,sha256=v8cL7EzhKIO6YDo-IJGC2TvjnaHvHb9F2VyJtW0W4U8,5047
54
54
  qcanvas/ui/qml_components/__init__.py,sha256=_qCJGhqDvxx8k4dIDgLFpKU7z-R7AS6HWPlsrUlAj2Q,203
55
55
  qcanvas/ui/qml_components/attachments_pane.py,sha256=uzaMguTCOAdorU0t4UUkjSOjeY0rYEO3h9lMskLr4Ow,2352
@@ -86,7 +86,7 @@ qcanvas/util/qurl_util.py,sha256=6nTk8VkQjT87wMOXyZucPBYdT6TTYzfCTElqsypLZPg,200
86
86
  qcanvas/util/runtime.py,sha256=EO1HFCN7dZbQtKHQOILuvjZFXGT7SzhlmPvU8ma95Z8,617
87
87
  qcanvas/util/ui_tools.py,sha256=cdwDrtljxIpzikvUt4CAMC06kogJ4WfhSTsC3lXAcz4,3575
88
88
  qcanvas/util/url_checker.py,sha256=HkNFixp1ARwc_YjYkpHb-IMTyuaC7CylvYCgDyo3sh4,136
89
- qcanvas-2.0.7.dist-info/METADATA,sha256=5vRcZE-w3MtzVb3GmAvQsXLR003hWfeAYoymnFXQDBA,3092
90
- qcanvas-2.0.7.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
91
- qcanvas-2.0.7.dist-info/entry_points.txt,sha256=hqG_g3MRYh_eLyQcDN4H3EXqmBia_fnJTJ-3nqZGzvY,40
92
- qcanvas-2.0.7.dist-info/RECORD,,
89
+ qcanvas-2.0.8.dist-info/METADATA,sha256=OSf2k01ds6H0RLa9gc8RW7yBSrZU64_sxLINUa3irXo,3092
90
+ qcanvas-2.0.8.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
91
+ qcanvas-2.0.8.dist-info/entry_points.txt,sha256=hqG_g3MRYh_eLyQcDN4H3EXqmBia_fnJTJ-3nqZGzvY,40
92
+ qcanvas-2.0.8.dist-info/RECORD,,