Revision 18ffbee1 snf-astakos-app/astakos/im/management/commands/sendactivation.py
b/snf-astakos-app/astakos/im/management/commands/sendactivation.py | ||
---|---|---|
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 | 34 |
from django.core.management.base import BaseCommand, CommandError |
35 |
from django.db import transaction |
|
36 | 35 |
|
37 | 36 |
from astakos.im.functions import send_verification |
38 | 37 |
|
... | ... | |
57 | 56 |
self.stderr.write(msg) |
58 | 57 |
continue |
59 | 58 |
|
60 |
send_verification(user) |
|
59 |
try: |
|
60 |
send_verification(user) |
|
61 |
except SendMailError, e: |
|
62 |
raise CommandError(e.message) |
|
61 | 63 |
|
62 | 64 |
self.stdout.write("Activated '%s'\n" % (user.email,)) |
Also available in: Unified diff