diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-06-24 12:58:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 12:58:27 (GMT) |
commit | adf8708c44945bfa68db8b02c6a1f560f05a5151 (patch) | |
tree | 2206a1331f6a3355f58fc4a8350a468b8c0b699e /Lib | |
parent | 0029099decbf0272cea837b029662bee1ee3e4d4 (diff) | |
download | cpython-adf8708c44945bfa68db8b02c6a1f560f05a5151.zip cpython-adf8708c44945bfa68db8b02c6a1f560f05a5151.tar.gz cpython-adf8708c44945bfa68db8b02c6a1f560f05a5151.tar.bz2 |
bpo-41005: Fixed perrmission error (GH-20936) (GH-21052)
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed
Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0c1efc7478872f98729f87886e9333548f)
Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/webbrowser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 3dcf66b..53e0efc 100755 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -550,7 +550,7 @@ def register_standard_browsers(): cmd = "xdg-settings get default-web-browser".split() raw_result = subprocess.check_output(cmd, stderr=subprocess.DEVNULL) result = raw_result.decode().strip() - except (FileNotFoundError, subprocess.CalledProcessError): + except (FileNotFoundError, subprocess.CalledProcessError, PermissionError) : pass else: global _os_preferred_browser |