diff options
author | Rick Ross <rick@dzone.com> | 2010-01-16 08:29:35 -0500 |
---|---|---|
committer | Rick Ross <rick@dzone.com> | 2010-01-16 08:29:35 -0500 |
commit | 5ca23a8d9acff3306e39e3cf99ceea1aa03e80d6 (patch) | |
tree | abe297f445b77c534db0c3c48a4d102c5ef7acd6 /forum/management/commands/clean_award_badges.py | |
parent | c7340cf0280b75d17095a11b2d25c9a92dd7edaa (diff) | |
download | askbot-5ca23a8d9acff3306e39e3cf99ceea1aa03e80d6.tar.gz askbot-5ca23a8d9acff3306e39e3cf99ceea1aa03e80d6.tar.bz2 askbot-5ca23a8d9acff3306e39e3cf99ceea1aa03e80d6.zip |
modified try-except-finally blocks for python 2.4 compatibility
Diffstat (limited to 'forum/management/commands/clean_award_badges.py')
-rw-r--r-- | forum/management/commands/clean_award_badges.py | 7 |
1 files changed, 4 insertions, 3 deletions
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() |