changeset 5832:3b1b875eb4f2

avoid crash if #refresh processing instruction is used without arguments
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 21 Feb 2012 01:02:04 +0100
parents 56eaf32027f4
children 3644f30574e0
files MoinMoin/Page.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Tue Feb 07 21:48:50 2012 +0100
+++ b/MoinMoin/Page.py	Tue Feb 21 01:02:04 2012 +0100
@@ -924,6 +924,9 @@
                         args = args.split()
                         if len(args) >= 1:
                             delay = max(int(args[0]), mindelay)
+                        else:
+                            # we need at least 1 argument
+                            raise ValueError
                         if len(args) >= 2:
                             target = args[1]
                         else: