Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
fc50e03f by cal0pteryx at 2026-07-29T23:13:10+02:00
fix: Don't fail when trying to remove file on transfer errors

Fixes #12780

- - - - -


1 changed file:

- gajim/common/file_transfer_manager.py


Changes:

=====================================
gajim/common/file_transfer_manager.py
=====================================
@@ -179,7 +179,10 @@ def _on_http_result(self, id_: str, future: 
Future[HTTPResult]) -> None:
         except Exception as error:
             output = obj.get_output_path()
             if output is not None:
-                output.unlink(missing_ok=True)
+                try:
+                    output.unlink(missing_ok=True)
+                except Exception:
+                    log.exception("Unable to remove file: %s", str(output))
             obj.set_exception(error)
 
         else:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/fc50e03fb2663ff027014f5e9cf39d90a1124985

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/fc50e03fb2663ff027014f5e9cf39d90a1124985
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]

Reply via email to