Fix variable name bug introduced by hasty hacking of cache system.

This commit is contained in:
Solderpunk 2020-08-31 21:17:06 +02:00
parent 08c60e202b
commit 4e8f3dcd05
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ you'll be able to transparently follow links to Gopherspace!""")
else: else:
cmd_str = self._get_handler_cmd(mime) cmd_str = self._get_handler_cmd(mime)
try: try:
subprocess.call(shlex.split(cmd_str % tmpf.name)) subprocess.call(shlex.split(cmd_str % tmpfile))
except FileNotFoundError: except FileNotFoundError:
print("Handler program %s not found!" % shlex.split(cmd_str)[0]) print("Handler program %s not found!" % shlex.split(cmd_str)[0])
print("You can use the ! command to specify another handler program or pipeline.") print("You can use the ! command to specify another handler program or pipeline.")