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.
1 parent b118354 commit 4f87b3cCopy full SHA for 4f87b3c
1 file changed
src/commoncode/system.py
@@ -94,7 +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
-on_ubuntu_22 = is_on_ubuntu_22()
+try:
98
+ 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