From 6a099fb7d6ba1f5e8eef8e3cd5bcc559efd4e2ea Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 24 Jun 2007 15:46:15 +0000 Subject: [PATCH] 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 --- pym/portage/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): """ -- 2.26.2