diff options
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py index 950e7038a5..4595244e2f 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -104,11 +104,11 @@ def abs_paths(): continue # don't mess with a PEP 302-supplied __file__ try: m.__file__ = os.path.abspath(m.__file__) - except (AttributeError, OSError): + except (AttributeError, OSError, TypeError): pass try: m.__cached__ = os.path.abspath(m.__cached__) - except (AttributeError, OSError): + except (AttributeError, OSError, TypeError): pass |