PEP 8 compliance.

This commit is contained in:
yrriban 2025-08-01 02:07:06 -04:00
parent 1ee4ea4dc6
commit 70e1a3a39e

View file

@ -54,11 +54,13 @@ class Fetch(dcc.config.Base):
if fetcher is None: if fetcher is None:
with urllib.request.urlopen(url) as response: with urllib.request.urlopen(url) as response:
return json.loads(response.read()) return json.loads(response.read())
fetcher_path = shutil.which(fetcher) fetcher_path = shutil.which(fetcher)
if fetcher_path is None: if fetcher_path is None:
raise Exception(f"Fetch util {fetcher} not found on PATH.") 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) return json.loads(proc.stdout)