From 5ca23a8d9acff3306e39e3cf99ceea1aa03e80d6 Mon Sep 17 00:00:00 2001 From: Rick Ross Date: Sat, 16 Jan 2010 08:29:35 -0500 Subject: modified try-except-finally blocks for python 2.4 compatibility --- forum/management/commands/clean_award_badges.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'forum/management/commands/clean_award_badges.py') diff --git a/forum/management/commands/clean_award_badges.py b/forum/management/commands/clean_award_badges.py index df3d2917..117e3a5f 100644 --- a/forum/management/commands/clean_award_badges.py +++ b/forum/management/commands/clean_award_badges.py @@ -21,9 +21,10 @@ from forum.models import * class Command(NoArgsCommand): def handle_noargs(self, **options): try: - self.clean_awards() - except Exception, e: - print e + try: + self.clean_awards() + except Exception, e: + print e finally: connection.close() -- cgit v1.2.3-1-g7c22