From fad80617fd35c1839b95904ab72e7b087990edbf Mon Sep 17 00:00:00 2001 From: astaric Date: Fri, 6 Apr 2018 13:52:13 +0200 Subject: [PATCH] addons: catch OSError in have_install_permission PermissionError is just one of possible errors that can be raised from failed open attempt. When one of the other erorrs occurs, an error was shown (as can be seen on sentry) --- Orange/canvas/application/addons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/canvas/application/addons.py b/Orange/canvas/application/addons.py index 63dcb9e1ee7..41af8d096e0 100644 --- a/Orange/canvas/application/addons.py +++ b/Orange/canvas/application/addons.py @@ -756,7 +756,7 @@ def have_install_permissions(): pass os.remove(fn) return True - except PermissionError: + except OSError: return False