diff --git a/repo2docker/contentproviders/hydroshare.py b/repo2docker/contentproviders/hydroshare.py index 90c41914..52aefec0 100755 --- a/repo2docker/contentproviders/hydroshare.py +++ b/repo2docker/contentproviders/hydroshare.py @@ -15,7 +15,9 @@ class Hydroshare(DoiProvider): def _fetch_version(self, host): """Fetch resource modified date and convert to epoch""" - json_response = self.session.get(host["version"].format(self.resource_id)).json() + json_response = self.session.get( + host["version"].format(self.resource_id) + ).json() date = next( item for item in json_response["dates"] if item["type"] == "modified" )["start_date"] diff --git a/setup.py b/setup.py index d37aa17c..a4e59d8c 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ def finalize_options(self): def run(self): import json + import requests resp = requests.get(self.url)