Skip to content

Commit

Permalink
fix undefined variable in error handler
Browse files Browse the repository at this point in the history
This prevents the wiki issue from being debugged, so we'll likely want
to put out a bugfix release soon before this bites too many other people.

Addresses #59.
  • Loading branch information
sobjornstad committed Dec 18, 2021
1 parent b49f2cf commit 8a98349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions anki-plugin/src/twimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def _invoke_tw_command(cmd: Sequence[str], wiki_path: Optional[str],
if "No tiddlers found in file" in stdout:
extra = ("(If this wiki is encrypted, "
"did you forget to give the password?)\n")
else:
extra = ""
raise RenderingError(
f"Failed to {description}: return code {proc.returncode}.\n{extra}"
f"$ {' '.join(proc.cmd)}\n\n{stdout}") from proc
Expand Down

0 comments on commit 8a98349

Please sign in to comment.