ext/rest.py
changeset 9517 3338b2205ea3
parent 9322 2dae5bf5ea68
child 9592 6fd2651719bc
--- a/ext/rest.py	Thu Feb 13 15:11:07 2014 +0100
+++ b/ext/rest.py	Tue Feb 11 11:03:01 2014 +0100
@@ -127,7 +127,7 @@
         view = _cw.vreg['views'].select(vid, _cw, rset=rset)
         content = view.render()
     except Exception as exc:
-        content = 'an error occured while interpreting this rql directive: %r' % exc
+        content = 'an error occurred while interpreting this rql directive: %r' % exc
     set_classes(options)
     return [nodes.raw('', content, format='html')], []
 
@@ -184,7 +184,7 @@
         view = _cw.vreg['views'].select(vid, _cw, rset=rset)
         content = view.render()
     except Exception, exc:
-        content = 'An error occured while interpreting directive bookmark: %r' % exc
+        content = 'An error occurred while interpreting directive bookmark: %r' % exc
     set_classes(options)
     return [nodes.raw('', content, format='html')], []