goes with previous commit

This commit is contained in:
mercierc committed 2021-11-11 15:12:04 +13:00
1 parent 8bd6d6c8e9
commit 5a8b9dca5d
1 file changed
+1 -1
+1 -1
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)