summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Decisions.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Decisions.py')
-rw-r--r--src/lib/Server/Plugins/Decisions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Decisions.py b/src/lib/Server/Plugins/Decisions.py
index 1f9525a0e..e239be5ee 100644
--- a/src/lib/Server/Plugins/Decisions.py
+++ b/src/lib/Server/Plugins/Decisions.py
@@ -26,7 +26,8 @@ class DecisionSet(Bcfg2.Server.Plugin.EntrySet):
DecisionFile, encoding)
try:
fam.AddMonitor(path, self)
- except OSError, e:
+ except OSError:
+ e = sys.exc_info()[1]
logger.error('Adding filemonitor for %s failed. '
'Make sure directory exists' % path)
raise Bcfg2.Server.Plugin.PluginInitError(e)