Skip to content

import19: UnboundLocalError: local variable 'editlog_data' referenced before assignment #1824

Closed
@diepes

Description

while trying moin2 through pip

moin --version
Python 3.9.6
Flask 3.1.0
Werkzeug 3.1.3

converting/importing files from moin19 got the error below, the import continued after this

2024-12-28 00:57:35,737 ERROR moin.cli.migration.moin19.import19:386 PageRevision 'ScubaDiving' '00000023' raised exception:
Traceback (most recent call last):
  File "/moin2/lib/python3.9/site-packages/moin/cli/migration/moin19/import19.py", line 377, in iter_revisions
    page_rev = PageRevision(self, revno, os.path.join(revisionspath, fname), self.target_namespace)
  File "/moin2/lib/python3.9/site-packages/moin/cli/migration/moin19/import19.py", line 460, in __init__
    meta.update(editlog_data)
UnboundLocalError: local variable 'editlog_data' referenced before assignment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcli

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions