Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-26 14:30:56 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-26 14:30:56 (GMT)
commit597efc6ded59237a495accb456ec7cafaf4f509f (patch)
tree35c478dcc79f5f8cc865bff8ffec8c86e2e4d1ea /devbot
parent102c54705debb1dc880b066c9d92261ee4ef6088 (diff)
Catch the right exception
Diffstat (limited to 'devbot')
-rw-r--r--devbot/plugins/fedora.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devbot/plugins/fedora.py b/devbot/plugins/fedora.py
index d5dd814..e7ee7f0 100644
--- a/devbot/plugins/fedora.py
+++ b/devbot/plugins/fedora.py
@@ -106,7 +106,7 @@ class DistroInfo(interfaces.DistroInfo):
def _get_fedora_release(self):
try:
return open("/etc/fedora-release").read().strip()
- except OSError:
+ except IOError:
return None
distro.register_distro_info(DistroInfo)