Log the exception while trying to create an extension info file

This commit is contained in:
cmdr2 2024-07-24 09:47:35 +05:30 committed by GitHub
parent 45f350239e
commit 89f5e07619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,8 +285,8 @@ def make_model_folders():
try:
with open(os.path.join(model_dir_path, help_file_name), "w", encoding="utf-8") as f:
f.write(help_file_contents)
except:
pass
except Exception as e:
log.exception(e)
def is_malicious_model(file_path):