changeset 235:c1e403174a6d

Fixed bug which occured when Include does not get any arguments. imported from: moin--main--1.5--patch-238
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Thu, 24 Nov 2005 18:24:02 +0000
parents e1ce03f9d523
children 81620fd76cac
files MoinMoin/macro/Include.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/Include.py	Thu Nov 24 18:10:42 2005 +0000
+++ b/MoinMoin/macro/Include.py	Thu Nov 24 18:24:02 2005 +0000
@@ -59,7 +59,7 @@
         return ''
 
     # parse and check arguments
-    args = args_re.match(text)
+    args = text and args_re.match(text)
     if not args:
         return (_sysmsg % ('error', _('Invalid include arguments "%s"!')) % (text,))