Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
17b8b703 by Philipp Hörist at 2025-08-01T19:11:51+02:00
imprv: HTTP: Log warning on cancel instead of raising exception
- - - - -
1 changed file:
- nbxmpp/http.py
Changes:
=====================================
nbxmpp/http.py
=====================================
@@ -160,7 +160,8 @@ class HTTPRequest(GObject.GObject):
def cancel(self) -> None:
if self._is_finished:
- raise ValueError("Session already finished")
+ self._log.warning("Cancel requested after download has already
finished")
+ return
self._log.info("Cancel requested")
self._cancellable.cancel()
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/17b8b70378833af32ce635257e8d4c64bd471990
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/17b8b70378833af32ce635257e8d4c64bd471990
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]