diff --git a/tryton/tryton/common/tempfile.py b/tryton/tryton/common/tempfile.py index 242a27c979..0c56981c71 100644 --- a/tryton/tryton/common/tempfile.py +++ b/tryton/tryton/common/tempfile.py @@ -25,7 +25,7 @@ def clean(): for fname in _files: try: os.remove(fname) - except FileNotFoundError: + except (FileNotFoundError, PermissionError): pass _files.clear()