From: Tom S Date: Thu, 22 Nov 2012 14:18:43 +0000 (+0000) Subject: change catch-all except (bad) to 'except AttributeError' X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d6df78e16f8e59839bc4e8c6bdab3eb2a4dbbd4f;p=django-jqchat.git change catch-all except (bad) to 'except AttributeError' --- diff --git a/jqchat/models.py b/jqchat/models.py index fd3ab2a..2b0d007 100644 --- a/jqchat/models.py +++ b/jqchat/models.py @@ -79,7 +79,7 @@ class Room(models.Model): # The list of events can be customised for each project. try: EVENT_CHOICES = settings.JQCHAT_EVENT_CHOICES -except: +except AttributeError: # Use default event list. EVENT_CHOICES = ( (1, "has changed the room's description."),