diff options
-rw-r--r-- | devbot/plugins/ubuntu.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devbot/plugins/ubuntu.py b/devbot/plugins/ubuntu.py index dd0efde..b56278e 100644 --- a/devbot/plugins/ubuntu.py +++ b/devbot/plugins/ubuntu.py @@ -26,9 +26,10 @@ class DistroInfo(interfaces.DistroInfo): elif arch == "x86_64": self.lib_dir = "lib/x86_64-linux-gnu" + os_info = {} + try: release = open(self._OS_RELEASE_PATH).read().strip() - os_info = {} for line in release.split("\n"): split = line.strip().split("=") os_info[split[0]] = split[1].replace("\"", "") |