diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-06-15 14:15:52 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-15 14:15:52 -0500 |
commit | 7be5239be45d6ee52d0b80d2a5993d3bdb6b933b (patch) | |
tree | ede82277589dd5ec980c0dee8490252255f48d29 /src/lib/Client/Tools/APT.py | |
parent | a1bc75c200fb9237ecc0dd5ccd5b8bf94214cf4b (diff) | |
download | bcfg2-7be5239be45d6ee52d0b80d2a5993d3bdb6b933b.tar.gz bcfg2-7be5239be45d6ee52d0b80d2a5993d3bdb6b933b.tar.bz2 bcfg2-7be5239be45d6ee52d0b80d2a5993d3bdb6b933b.zip |
Client Tools: Add PY3K compatibility
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Client/Tools/APT.py')
-rw-r--r-- | src/lib/Client/Tools/APT.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py index d7be44dc0..2b8cc3304 100644 --- a/src/lib/Client/Tools/APT.py +++ b/src/lib/Client/Tools/APT.py @@ -73,7 +73,8 @@ class APT(Bcfg2.Client.Tools.Tool): self.cmd.run("%s clean" % APTGET) try: self.pkg_cache = apt.cache.Cache() - except SystemError, e: + except SystemError: + e = sys.exc_info()[1] self.logger.info("Failed to initialize APT cache: %s" % e) raise Bcfg2.Client.Tools.toolInstantiationError self.pkg_cache.update() |