Revision 252eb705 snf-astakos-app/astakos/oa2/management/commands/oa2-client-add.py
b/snf-astakos-app/astakos/oa2/management/commands/oa2-client-add.py | ||
---|---|---|
74 | 74 |
if len(args) != 1: |
75 | 75 |
raise CommandError("Invalid number of arguments") |
76 | 76 |
|
77 |
if not options['urls']: |
|
78 |
raise CommandError("There should be at least one redirect URI") |
|
79 |
|
|
77 | 80 |
identifier = args[0].decode('utf8') |
78 | 81 |
|
79 | 82 |
try: |
... | ... | |
85 | 88 |
c.save() |
86 | 89 |
|
87 | 90 |
except BaseException, e: |
88 |
import traceback |
|
89 |
traceback.print_exc() |
|
90 | 91 |
raise CommandError(e) |
91 | 92 |
else: |
92 | 93 |
self.stdout.write('Client created successfully\n') |
Also available in: Unified diff