qcanvas 2.0.7__py3-none-any.whl → 2.0.9__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.
- qcanvas/ui/qcanvas_window/qcanvas_window.py +10 -4
- {qcanvas-2.0.7.dist-info → qcanvas-2.0.9.dist-info}/METADATA +2 -2
- {qcanvas-2.0.7.dist-info → qcanvas-2.0.9.dist-info}/RECORD +5 -5
- {qcanvas-2.0.7.dist-info → qcanvas-2.0.9.dist-info}/WHEEL +1 -1
- {qcanvas-2.0.7.dist-info → qcanvas-2.0.9.dist-info}/entry_points.txt +0 -0
|
@@ -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,
|
|
183
|
-
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.
|
|
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.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: View courses from Canvas LMS
|
|
5
5
|
Author: QCanvas
|
|
6
6
|
Author-email: QCanvas@noreply.codeberg.org
|
|
@@ -34,7 +34,7 @@ Requires-Dist: aiofile (>=3.9.0,<4.0.0)
|
|
|
34
34
|
Requires-Dist: aiosqlite (>=0.21.0,<0.22.0)
|
|
35
35
|
Requires-Dist: asynctaskpool (>=0.2.1,<0.3.0)
|
|
36
36
|
Requires-Dist: cachetools (>=5.5.0,<6.0.0)
|
|
37
|
-
Requires-Dist: libqcanvas (>=0.5.
|
|
37
|
+
Requires-Dist: libqcanvas (>=0.5.7,<0.6.0)
|
|
38
38
|
Requires-Dist: platformdirs (>=4.2.2,<5.0.0)
|
|
39
39
|
Requires-Dist: pyqtdarktheme-fork (>=2.3.2,<3.0.0)
|
|
40
40
|
Requires-Dist: qasync (>=0.27.1,<0.28.0)
|
|
@@ -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=
|
|
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.
|
|
90
|
-
qcanvas-2.0.
|
|
91
|
-
qcanvas-2.0.
|
|
92
|
-
qcanvas-2.0.
|
|
89
|
+
qcanvas-2.0.9.dist-info/METADATA,sha256=RXgvHJge8EnSEyhM7U9O2Y2Q5TC8EizD_60Ve4Yl224,3092
|
|
90
|
+
qcanvas-2.0.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
91
|
+
qcanvas-2.0.9.dist-info/entry_points.txt,sha256=hqG_g3MRYh_eLyQcDN4H3EXqmBia_fnJTJ-3nqZGzvY,40
|
|
92
|
+
qcanvas-2.0.9.dist-info/RECORD,,
|
|
File without changes
|