diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-01-06 00:27:48 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-01-06 00:27:48 (GMT) |
commit | bc7c974a4399b30b7f5bdcd054333b2fe8f550d9 (patch) | |
tree | 86d2136d916e132007cf76d7fecf8f1be26acd6e /devbot | |
parent | 780d39e549df18d40eb01e4ff07c2274ab72d720 (diff) |
Don't traceback if os_info doesnt exist
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/plugins/ubuntu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devbot/plugins/ubuntu.py b/devbot/plugins/ubuntu.py index b56278e..71102cd 100644 --- a/devbot/plugins/ubuntu.py +++ b/devbot/plugins/ubuntu.py @@ -37,7 +37,7 @@ class DistroInfo(interfaces.DistroInfo): release = None self.valid = False - if os_info["ID"] != "ubuntu": + if os_info.get("ID", None) != "ubuntu": self.valid = False self.version = os_info.get("VERSION_ID", None) |