changeset 1257:5b015ced5609

Fixed a corner case where both wiki's pages are equal.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Thu, 10 Aug 2006 23:41:22 +0200
parents f3c8f750c1fe
children adebc2c73ef7
files MoinMoin/xmlrpc/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/__init__.py	Thu Aug 10 23:19:41 2006 +0200
+++ b/MoinMoin/xmlrpc/__init__.py	Thu Aug 10 23:41:22 2006 +0200
@@ -669,6 +669,8 @@
         # write page
         try:
             currentpage.saveText(newcontents.decode("utf-8"), last_remote_rev, comment=comment)
+        except PageEditor.Unchanged: # could happen in case of both wiki's pages being equal
+            pass
         except PageEditor.EditConflict:
             return LASTREV_INVALID