You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ThomasWaldmann
changed the title
import29: UnboundLocalError: local variable 'editlog_data' referenced before assignment
import19: UnboundLocalError: local variable 'editlog_data' referenced before assignment
Dec 27, 2024
logging.warning(f"Missing edit log data: name = {item_name}, revision = {revno}")
if1<=revno<=item.current:
editlog_data= { # make something up
NAME: [item.name],
MTIME: int(os.path.getmtime(path)),
ACTION: ACTION_SAVE,
}
An else branch with a custom exception is missing there. Did you get the message "Missing edit log data: name = {item_name}, revision = {revno}" from line 452 before the traceback in the log? There seems to be an inconsistency between the "edit-log" file and the revision files in your moin1.9 data. I will add an exception message for this case, but it won't change the resulting moin2 wiki data.
while trying moin2 through pip
converting/importing files from moin19 got the error below, the import continued after this
The text was updated successfully, but these errors were encountered: