diff --git a/moin2doku.py b/moin2doku.py index a40a7ec..3ab7887 100755 --- a/moin2doku.py +++ b/moin2doku.py @@ -274,7 +274,8 @@ else: # insert frontpage, # so that MoinMoin frontpage gets saved as DokuWiki frontpage based on their configs frontpage = wikiutil.getFrontPage(request) - del pages[frontpage.page_name] + if pages.has_key(frontpage.page_name): + del pages[frontpage.page_name] pages[dw.getId()] = frontpage for pagename, page in pages.items():