Fixed TypeError in subliminal_patch sanitize

pull/1305/head
Vitiko 4 years ago committed by GitHub
parent 53d6aedfc5
commit f1cd54c75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ def sanitize(string, ignore_characters=None, default_characters={'-', ':', '(',
"""
# only deal with strings
if string is None:
if not isinstance(string, str):
return
ignore_characters = ignore_characters or set()

Loading…
Cancel
Save