Mercurial > libervia-backend
changeset 1783:e393b96dc553
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 | 514ade866261 |
children | 21f0bcd3b637 |
files | src/tmp/wokkel/rsm.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tmp/wokkel/rsm.py Fri Jan 08 17:24:32 2016 +0100 +++ b/src/tmp/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()