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


Commits:
94986a1c by wurstsalat at 2025-07-08T23:21:25+02:00
fix: Preview: Guard for more errors while trying to save file

Fixes #12337

- - - - -


1 changed file:

- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -647,11 +647,11 @@ def _on_save_finished(
 
                 try:
                     shutil.copyfile(preview.orig_path, target_path)
-                except PermissionError as e:
+                except Exception as e:
                     InformationAlertDialog(
                         _("Could Not Save File"),
                         _(
-                            "You do not have permissions for this directory.\n"
+                            "There was an error while trying to save the 
file.\n"
                             "Error: %s."
                         )
                         % e,



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

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