From: Zac Medico Date: Sat, 20 Jan 2007 20:07:21 +0000 (-0000) Subject: For bug #161356, prevent an AttributeError if the exception has no __module__ attribute. X-Git-Tag: v2.1.2-r3~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3c38df9ec66b8eee22a146fdd4d686d9c079b28;p=portage.git For bug #161356, prevent an AttributeError if the exception has no __module__ attribute. svn path=/main/trunk/; revision=5737 --- diff --git a/bin/emerge b/bin/emerge index 471f8336b..963675439 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1462,7 +1462,7 @@ class depgraph: raise # Needed else can't exit except Exception, e: print >> sys.stderr, "\n\n!!! Problem in '%s' dependencies." % mykey - print >> sys.stderr, "!!!", str(e), e.__module__ + print >> sys.stderr, "!!!", str(e), getattr(e, "__module__", None) raise if not self.mysd: