Skip to content

Commit

Permalink
Fix test_resource_collection_post_using_invalid_resource_url. See #299
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed Sep 6, 2017
1 parent a9c040b commit b5f7e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wirecloud/platform/localcatalogue/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def create(self, request):
context["headers"] = headers
response = WIRECLOUD_PROXY.do_request(request, templateURL, "GET", context)
if response.status_code >= 300 or response.status_code < 200:
return build_error_response(request, 502, "")
raise Exception()

downloaded_file = b''.join(response)
except:
Expand Down

0 comments on commit b5f7e49

Please sign in to comment.