Browse Source

Don't crash on certain forms.

Rafał Pitoń 11 years ago
parent
commit
c228cdae1d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      misago/apps/threadtype/posting/forms.py

+ 2 - 1
misago/apps/threadtype/posting/forms.py

@@ -54,7 +54,8 @@ class PostingForm(FloodProtectionMixin, Form, ValidatePostLengthMixin):
             type_fields_call = self.type_fields
         except AttributeError:
             type_fields_call = None
-        type_fields_call()
+        if type_fields_call:
+            type_fields_call()
 
     def clean_thread_weight(self):
         data = self.cleaned_data['thread_weight']