To avoid portage meltdowns for now, make it a warning when obj is not an
authorFabian Groffen <grobian@gentoo.org>
Sun, 24 Jun 2007 15:46:15 +0000 (15:46 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sun, 24 Jun 2007 15:46:15 +0000 (15:46 -0000)
instance of type.  Whatever this means, it appears to happen a lot
during e.g. ebuild .... digest, not sure why (yet).

svn path=/main/branches/prefix/; revision=6992

pym/portage/__init__.py

index 907a27f3e1eca0f04a31f4ae17fb5187cbb68144..30be4d0b08f7126a6ddc7bfe91daa20be4bfadf8 100644 (file)
@@ -820,7 +820,9 @@ def autouse(myvartree, use_cache=1, mysettings=None):
 
 def check_config_instance(test):
        if not isinstance(test, config):
-               raise TypeError("Invalid type for config object: %s" % test.__class__)
+       #       raise TypeError("Invalid type for config object: %s" % test.__class__)
+               print "WARNING: Invalid type for config object: %s" % test.__class__
+               print "WARNING: no instance of: %s" % config.__class__
 
 class config(object):
        """