diff wokkel/rsm.py @ 28:c782fb5237f8

tmp (wokkel.rsm): raise RSMError when <after/> element is empty
author Goffi <goffi@goffi.org>
date Fri, 08 Jan 2016 17:25:19 +0100
parents a24c2476f7e0
children 213122b92b08
line wrap: on
line diff
--- a/wokkel/rsm.py	Fri Jan 08 17:24:32 2016 +0100
+++ b/wokkel/rsm.py	Fri Jan 08 17:25:19 2016 +0100
@@ -117,6 +117,8 @@
             after = None
         else:
             after = unicode(after_elt)
+            if not after:
+                raise RSMError("<after/> element can't be empty in RSM request")
 
         try:
             max_elt = set_elt.elements(NS_RSM, 'max').next()