goes with previous commit

This commit is contained in:
mercierc
2021-11-11 15:12:04 +13:00
parent 8bd6d6c8e9
commit 5a8b9dca5d

View File

@ -174,7 +174,7 @@ def open_uri(uri,
dms_only=False,
force_file=False):
if not uri.isascii():
if type(uri) == str and not uri.isascii():
raise Exception("Paths must be ASCII characters only")
cdef bytes urib = tobytes(uri)