Skip to content

Commit

Permalink
Continuing after running send_error() caused finish() to be called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Dec 31, 2018
1 parent b628e4f commit fd7456b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def get(self):
# If it's not available yet, only return if user is admin.
if not (self.current_user and self.current_user.is_admin(dataset_version.dataset)):
self.send_error(status_code=403)
return

base_url = "%s://%s" % (self.request.protocol, self.request.host)
dataset_schema['url'] = base_url + "/dataset/" + dataset_version.dataset.short_name
Expand Down

0 comments on commit fd7456b

Please sign in to comment.