Commit c1233368 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Let qh errors through when issuing commission

When registering pending apps, catch only NoCapacityError. No other
QuotaholderError is expected and should not be treated here.
parent f12f72b1
...@@ -140,8 +140,6 @@ def register_pending_apps(user, quantity, force=False, dry_run=False): ...@@ -140,8 +140,6 @@ def register_pending_apps(user, quantity, force=False, dry_run=False):
except NoCapacityError as e: except NoCapacityError as e:
limit = e.data['limit'] limit = e.data['limit']
return False, limit return False, limit
except QuotaholderError:
return False, None
accept = not dry_run accept = not dry_run
qh.resolve_pending_commission('astakos', s, accept) qh.resolve_pending_commission('astakos', s, accept)
return True, None return True, None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment