summaryrefslogtreecommitdiffstats
path: root/forum/management/commands/send_email_alerts.py
diff options
context:
space:
mode:
authorRick Ross <rick@dzone.com>2010-01-16 08:29:35 -0500
committerRick Ross <rick@dzone.com>2010-01-16 08:29:35 -0500
commit5ca23a8d9acff3306e39e3cf99ceea1aa03e80d6 (patch)
treeabe297f445b77c534db0c3c48a4d102c5ef7acd6 /forum/management/commands/send_email_alerts.py
parentc7340cf0280b75d17095a11b2d25c9a92dd7edaa (diff)
downloadaskbot-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/send_email_alerts.py')
-rw-r--r--forum/management/commands/send_email_alerts.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/forum/management/commands/send_email_alerts.py b/forum/management/commands/send_email_alerts.py
index 777381ec..f5974e6b 100644
--- a/forum/management/commands/send_email_alerts.py
+++ b/forum/management/commands/send_email_alerts.py
@@ -14,9 +14,10 @@ from utils.odict import OrderedDict
class Command(NoArgsCommand):
def handle_noargs(self,**options):
try:
- self.send_email_alerts()
- except Exception, e:
- print e
+ try:
+ self.send_email_alerts()
+ except Exception, e:
+ print e
finally:
connection.close()