mirror of
https://github.com/ihabunek/toot.git
synced 2025-06-30 22:18:36 -04:00
Fix compatibility with py<3.6
This commit is contained in:
parent
73ba70eb83
commit
6f8cd86417
@ -50,7 +50,7 @@ def editor(value):
|
|||||||
# Check editor executable exists
|
# Check editor executable exists
|
||||||
exe = shutil.which(value)
|
exe = shutil.which(value)
|
||||||
if not exe:
|
if not exe:
|
||||||
raise ArgumentTypeError(f"Editor `{value}` not found")
|
raise ArgumentTypeError("Editor `{}` not found".format(value))
|
||||||
|
|
||||||
return exe
|
return exe
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user