diff MoinMoin/macro/Include.py @ 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 27c541f45422
children e574cc401e89
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,))