We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7dab778 + 079691e commit 69c0e62Copy full SHA for 69c0e62
1 file changed
src/commoncode/system.py
@@ -94,8 +94,10 @@ def is_on_ubuntu_22(os_release_location='/etc/os-release'):
94
os_release_info = parse_os_release(os_release_location)
95
return os_release_info['ID'] == 'ubuntu' and '22' in os_release_info['VERSION_ID']
96
97
-
98
-on_ubuntu_22 = is_on_ubuntu_22()
+try:
+ on_ubuntu_22 = is_on_ubuntu_22()
99
+except FileNotFoundError:
100
+ on_ubuntu_22 = False
101
102
del is_on_ubuntu_22
103
0 commit comments