Skip to content

Commit

Permalink
Fix TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Nov 24, 2021
1 parent 62a4305 commit 23f5e27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bonfire/bonfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,7 @@ def _get_namespace(requested_ns_name, name, requester, duration, timeout):
requester = requester if requester else _get_requester()
if check_for_existing_reservation(requester):
_warn_of_existing(requester)
ns, err = reserve_namespace(name, requester, duration, timeout)
if err is not None:
_error(f"Error during namespace reservation. Error: {err}")
ns = reserve_namespace(name, requester, duration, timeout)
reserved_new_ns = True

return ns.name, reserved_new_ns
Expand Down

0 comments on commit 23f5e27

Please sign in to comment.