From: Fabian Groffen Date: Sun, 24 Jun 2007 15:46:15 +0000 (-0000) Subject: To avoid portage meltdowns for now, make it a warning when obj is not an X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6a099fb7d6ba1f5e8eef8e3cd5bcc559efd4e2ea;p=portage.git To avoid portage meltdowns for now, make it a warning when obj is not an 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 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 907a27f3e..30be4d0b0 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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): """