diff options
Diffstat (limited to 'forum/management/commands/subscribe_everyone.py')
-rw-r--r-- | forum/management/commands/subscribe_everyone.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/forum/management/commands/subscribe_everyone.py b/forum/management/commands/subscribe_everyone.py index 3f8da9ec..c79528f3 100644 --- a/forum/management/commands/subscribe_everyone.py +++ b/forum/management/commands/subscribe_everyone.py @@ -6,14 +6,15 @@ from django.core.mail import EmailMessage from django.utils.translation import ugettext as _ from django.utils.translation import ungettext import datetime -import settings +from django.conf import settings class Command(NoArgsCommand): def handle_noargs(self,**options): try: - self.subscribe_everyone() - except Exception, e: - print e + try: + self.subscribe_everyone() + except Exception, e: + print e finally: connection.close() |