diff -r dfb257df7fe3 MoinMoin/script/migration/_conv160.py
--- a/MoinMoin/script/migration/_conv160.py	Mon Feb 04 14:35:21 2008 +0100
+++ b/MoinMoin/script/migration/_conv160.py	Thu Feb 07 19:07:46 2008 +0100
@@ -131,17 +131,23 @@ class EditLog:
         """ read complete edit-log from disk """
         data = {}
         try:
+            lineno = 0
             f = file(self.fname, 'r')
             for line in f:
+                lineno += 1
                 line = line.replace('\r', '').replace('\n', '')
                 if not line.strip(): # skip empty lines
                     continue
                 fields = line.split('\t') + [''] * 9
                 timestamp, rev, action, pagename, ip, hostname, userid, extra, comment = fields[:9]
-                timestamp = int(timestamp)
-                rev = int(rev)
-                pagename = wikiutil.unquoteWikiname(pagename)
-                data[(timestamp, rev, pagename)] = (timestamp, rev, action, pagename, ip, hostname, userid, extra, comment)
+                try:
+                    timestamp = int(timestamp)
+                    rev = int(rev)
+                    pagename = wikiutil.unquoteWikiname(pagename)
+                    data[(timestamp, rev, pagename)] = (timestamp, rev, action, pagename, ip, hostname, userid, extra, comment)
+                except ValueError, err:
+                    # corrupt event log line, log error and skip it
+                    print "Error: invalid edit log (%s) line %d, err: %s, SKIPPING THIS LINE!" % (self.fname, lineno, str(err))
             f.close()
         except IOError, err:
             # no edit-log
