diff --git a/dcc/fetch.py b/dcc/fetch.py index 181f83f..ed2aaca 100644 --- a/dcc/fetch.py +++ b/dcc/fetch.py @@ -54,11 +54,13 @@ class Fetch(dcc.config.Base): if fetcher is None: with urllib.request.urlopen(url) as response: return json.loads(response.read()) - + fetcher_path = shutil.which(fetcher) if fetcher_path is None: raise Exception(f"Fetch util {fetcher} not found on PATH.") - proc = subprocess.run([fetcher_path, url], capture_output=True, check = True) + proc = subprocess.run( + [fetcher_path, url], + capture_output=True, check=True + ) return json.loads(proc.stdout) -