Use str(e) instead of e.message in searcher.py

This commit is contained in:
rembo10
2022-02-15 15:11:27 +05:30
parent fff44e4631
commit 3e3047aef2

View File

@@ -82,8 +82,8 @@ def torrent_to_file(target_file, data):
fp.write(data)
except IOError as e:
logger.error(
"Could not write torrent file '%s': %s. Skipping.",
target_file, e.message)
f"Could not write `{target_file}`: {str(e)}"
)
return
# Try to change permissions