diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-27 23:30:06 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-27 23:30:06 +0000 |
commit | 6d00d8a1d996dd062aed767138bf6291c8f4ab01 (patch) | |
tree | d4896634905b5fd95e8d2afd6de19aabaa09964d | |
parent | 2ebaee0adc496323d472dc52eeb0fa5ded924796 (diff) | |
download | portage-6d00d8a1d996dd062aed767138bf6291c8f4ab01.tar.gz portage-6d00d8a1d996dd062aed767138bf6291c8f4ab01.tar.bz2 portage-6d00d8a1d996dd062aed767138bf6291c8f4ab01.zip |
Fix incorrect logging.exception() arguments. The exception instance is not
supposed to be passed into this function.
svn path=/main/trunk/; revision=11227
-rwxr-xr-x | bin/repoman | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman index c45622a00..9b2423574 100755 --- a/bin/repoman +++ b/bin/repoman @@ -572,7 +572,7 @@ try: utilities.parse_use_local_desc(f, luselist) f.close() except (IOError, OSError, ParseError), e: - logging.exception("Couldn't read from use.local.desc", e) + logging.exception("Couldn't read from use.local.desc") sys.exit(1) if portdir_overlay != portdir: @@ -583,7 +583,7 @@ if portdir_overlay != portdir: utilities.parse_use_local_desc(f, luselist) f.close() except (IOError, OSError, ParseError), e: - logging.exception("Couldn't read from '%s'" % filename, e) + logging.exception("Couldn't read from '%s'" % (filename,)) sys.exit(1) del filename @@ -598,7 +598,7 @@ try: for l in range(0, len(vardescs)): uselist.append(var.lower() + "_" + vardescs[l].split()[0]) except (IOError, OSError, ParseError), e: - logging.exception("Couldn't read USE flags from use.desc", e) + logging.exception("Couldn't read USE flags from use.desc") sys.exit(1) # retrieve a list of current licenses in portage @@ -1088,7 +1088,7 @@ for x in scanlist: utilities.parse_metadata_use(f, muselist) f.close() except (EnvironmentError, ParseError), e: - logging.exception("Couldn't read from metadata.xml: %s" % (e,)) + logging.exception("Couldn't read from metadata.xml") sys.exit(1) allmasked = True |