1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-09-22 04:25:55 -04:00

Fix compatibility with py<3.6

This commit is contained in:
Ivan Habunek 2019-08-29 12:46:00 +02:00
parent 73ba70eb83
commit 6f8cd86417
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -50,7 +50,7 @@ def editor(value):
# Check editor executable exists
exe = shutil.which(value)
if not exe:
raise ArgumentTypeError(f"Editor `{value}` not found")
raise ArgumentTypeError("Editor `{}` not found".format(value))
return exe