Skip to content

Commit

Permalink
Fix a type error in check_ubuntu_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
younghojan committed May 24, 2024
1 parent 9a38fbc commit 1cd3324
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchexec/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,9 @@ def check_ubuntu_version():
Check the Ubuntu version by reading the content of the '/etc/os-release' file.
"""
content = try_read_file("/etc/os-release")
if content is None:
return None

lines = content.splitlines()
name = None
version_id = None
Expand Down

0 comments on commit 1cd3324

Please sign in to comment.