Fixed TypeError in subliminal_patch sanitize

This commit is contained in:
Vitiko 2021-03-02 08:17:02 -04:00 committed by GitHub
parent 53d6aedfc5
commit f1cd54c75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()