mirror of https://github.com/morpheus65535/bazarr
Fixed TypeError in subliminal_patch sanitize
This commit is contained in:
parent
53d6aedfc5
commit
f1cd54c75c
|
@ -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…
Reference in New Issue