From d6df78e16f8e59839bc4e8c6bdab3eb2a4dbbd4f Mon Sep 17 00:00:00 2001 From: Tom S Date: Thu, 22 Nov 2012 14:18:43 +0000 Subject: [PATCH] change catch-all except (bad) to 'except AttributeError' --- jqchat/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."), -- 2.39.5