mirror of https://github.com/tLDP/python-tldp
Merge pull request #7 from mwhudson/python3.6-compat
fix guess(non-string) with Python 3.6
This commit is contained in:
commit
aa17eb26fd
|
@ -57,7 +57,7 @@ def guess(fname):
|
|||
'''
|
||||
try:
|
||||
stem, ext = os.path.splitext(fname)
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
return None
|
||||
|
||||
if not ext:
|
||||
|
|
Loading…
Reference in New Issue