Merge pull request #7 from mwhudson/python3.6-compat

fix guess(non-string) with Python 3.6
This commit is contained in:
Martin A. Brown 2017-07-13 17:02:01 -07:00 committed by GitHub
commit aa17eb26fd
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def guess(fname):
'''
try:
stem, ext = os.path.splitext(fname)
except AttributeError:
except (AttributeError, TypeError):
return None
if not ext: