From bc7c974a4399b30b7f5bdcd054333b2fe8f550d9 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sun, 06 Jan 2013 00:27:48 +0000 Subject: Don't traceback if os_info doesnt exist --- 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) -- cgit v0.9.1