Skip to content

Commit

Permalink
Merge pull request #1828 from UlrichB22/fix-1824
Browse files Browse the repository at this point in the history
Fix UnboundLocalError in import19
  • Loading branch information
UlrichB22 authored Jan 23, 2025
2 parents 5c5732b + a93e8eb commit 25f86fa
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 25f86fa

Please sign in to comment.