From 0bc32e75ba6878dd244d24593ef91ea066bb7180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 19 Sep 2012 00:27:19 +0200 Subject: [PATCH] skip pages (for now) whose mtime can't be retrieved --- moin2doku.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moin2doku.py b/moin2doku.py index 50a059a..2e0784b 100755 --- a/moin2doku.py +++ b/moin2doku.py @@ -168,6 +168,11 @@ def convertfile(pagedir, overwrite = False): 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: out_file = os.path.join(output_dir, 'pages', dw.wikiFN(pagename)) else: