Skip to content

Commit

Permalink
Fix UnboundLocalError in import19
Browse files Browse the repository at this point in the history
  • Loading branch information
UlrichB22 committed Jan 21, 2025
1 parent 5c5732b commit a93e8eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/moin/cli/migration/moin19/import19.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ def __init__(self, item, revno, path, target_namespace, latest_rev_only=False):
MTIME: int(os.path.getmtime(path)),
ACTION: ACTION_SAVE,
}
else:
raise NoSuchRevisionError(f"Item {item.name!r} has no revision {revno}.")
meta, data = split_body(content)
meta.update(editlog_data)
format = meta.pop("format", self.backend.format_default)
Expand Down

0 comments on commit a93e8eb

Please sign in to comment.