diff options
author | Raul Cuza <raulcuza@gmail.com> | 2011-12-10 23:26:19 -0500 |
---|---|---|
committer | Raul Cuza <raulcuza@gmail.com> | 2011-12-10 23:26:19 -0500 |
commit | 042c1e10bdf66e6c9b54c88a49200d4f2dbff683 (patch) | |
tree | 3940d63585eb857f8f5454e3a0ab018fd369358d /src/lib/Server/Plugins/FileProbes.py | |
parent | 4310284f6df01caf1b686c9bac8955364a895755 (diff) | |
download | bcfg2-042c1e10bdf66e6c9b54c88a49200d4f2dbff683.tar.gz bcfg2-042c1e10bdf66e6c9b54c88a49200d4f2dbff683.tar.bz2 bcfg2-042c1e10bdf66e6c9b54c88a49200d4f2dbff683.zip |
Revert "Correct syntax for try/except statements."
This commit is not compatable with Python 2.4 and below.
Our goal is to support for the foreseeable future 2.4+ for
Bcfg2 server and 2.3+ for Bcfg2 client.
This reverts commit 4310284f6df01caf1b686c9bac8955364a895755.
Diffstat (limited to 'src/lib/Server/Plugins/FileProbes.py')
-rw-r--r-- | src/lib/Server/Plugins/FileProbes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/FileProbes.py b/src/lib/Server/Plugins/FileProbes.py index 5d3c35e5f..2d64c3343 100644 --- a/src/lib/Server/Plugins/FileProbes.py +++ b/src/lib/Server/Plugins/FileProbes.py @@ -137,7 +137,7 @@ class FileProbes(Bcfg2.Server.Plugin.Plugin, self.logger.info("Writing new probed file %s" % fileloc) try: os.makedirs(os.path.dirname(fileloc)) - except OSError as err: + except OSError, err: if err.errno == errno.EEXIST: pass else: |