skip pages (for now) whose mtime can't be retrieved

This commit is contained in:
Elan Ruusamäe 2012-09-19 00:27:19 +02:00
parent 4c38ae918e
commit 0bc32e75ba

View file

@ -168,6 +168,11 @@ def convertfile(pagedir, overwrite = False):
content = moin2doku(pagename, page.get_raw_body()) content = moin2doku(pagename, page.get_raw_body())
if not page.mtime_usecs():
print "NO REVISION: %s" % page.mtime_usecs()
# TODO file exists, but no mtime, recover from filename
continue
if rev == current_rev: if rev == current_rev:
out_file = os.path.join(output_dir, 'pages', dw.wikiFN(pagename)) out_file = os.path.join(output_dir, 'pages', dw.wikiFN(pagename))
else: else: