diff options
author | Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com> | 2020-06-22 09:06:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 09:06:07 (GMT) |
commit | 9e27bc0c1efc7478872f98729f87886e9333548f (patch) | |
tree | d32dd2123e9d33931b46fd7616b4a868ce70dc84 /Lib/webbrowser.py | |
parent | 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e (diff) | |
download | cpython-9e27bc0c1efc7478872f98729f87886e9333548f.zip cpython-9e27bc0c1efc7478872f98729f87886e9333548f.tar.gz cpython-9e27bc0c1efc7478872f98729f87886e9333548f.tar.bz2 |
bpo-41005: Fixed perrmission error (GH-20936)
* 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>
Diffstat (limited to 'Lib/webbrowser.py')
-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 31e1df4..cea9130 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 |