check for response content
@@ -750,6 +750,7 @@ def update_web_services(services_url, api_token, timeout, publish_urls, res_id):
resource = utils.get_resource_by_shortkey(res_id)
response_content = json.loads(response.content.decode())
+ if "resource" in response_content:
for key, value in response_content["resource"].items():
resource.extra_metadata[key] = value
resource.save()
