diff src/plugins/plugin_misc_invitations.py @ 2223:c6c9a97ffebf

plugin invitations: fixed url_template check
author Goffi <goffi@goffi.org>
date Sun, 16 Apr 2017 17:57:40 +0200
parents 77a3d0a28642
children ebc0c1701811
line wrap: on
line diff
--- a/src/plugins/plugin_misc_invitations.py	Sun Apr 16 17:55:10 2017 +0200
+++ b/src/plugins/plugin_misc_invitations.py	Sun Apr 16 17:57:40 2017 +0200
@@ -161,7 +161,7 @@
 
         self.checkExtra(extra)
 
-        if not 'url_template' in extra and not 'message_body' in extra:
+        if not 'url_template' in kwargs and not 'message_body' in kwargs:
             raise ValueError(_(u"You need to provide url_template if you use default message body"))