Revision 9e812adf snf-astakos-app/astakos/im/management/commands/project-control.py
b/snf-astakos-app/astakos/im/management/commands/project-control.py | ||
---|---|---|
153 | 153 |
length,)) |
154 | 154 |
|
155 | 155 |
@commit_on_success_strict() |
156 |
def expire(self, execute=False, ctx=None):
|
|
156 |
def expire(self, execute=False): |
|
157 | 157 |
try: |
158 | 158 |
projects = check_expiration(execute=execute) |
159 | 159 |
self.print_expired(projects, execute) |
160 | 160 |
except BaseException as e: |
161 |
if ctx: |
|
162 |
ctx.mark_rollback() |
|
163 | 161 |
raise CommandError(e) |
Also available in: Unified diff