skip pages (for now) whose mtime can't be retrieved
This commit is contained in:
parent
4c38ae918e
commit
0bc32e75ba
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue