Lint
This commit is contained in:
parent
13ac55fa18
commit
869f47fff9
4 changed files with 5 additions and 5 deletions
|
@ -530,7 +530,7 @@ def load_character_memoized(character, name1, name2, instruct=False):
|
|||
|
||||
|
||||
def upload_character(file, img, tavern=False):
|
||||
decoded_file = file if type(file) == str else file.decode('utf-8')
|
||||
decoded_file = file if isinstance(file, str) else file.decode('utf-8')
|
||||
try:
|
||||
data = json.loads(decoded_file)
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue