Skip to content
Snippets Groups Projects
Commit 320f6623 authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Update pre-commit to not specify version, use format strings in make_cal.py

parent b873cd2c
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,3 @@ repos:
rev: stable
hooks:
- id: black
language_version: python3.6
......@@ -53,7 +53,7 @@ url = (
)
try:
print("Loading data from web service\n\t{}".format(url), file=sys.stderr)
print(f"Loading data from web service\n\t{url}", file=sys.stderr)
response = urllib2.urlopen(
url,
# allow environment certificate bundle override
......@@ -62,7 +62,7 @@ try:
data = response.read()
observations = json.loads(data)
except Exception as e:
print("Error loading data ({})".format(str(e)), file=sys.stderr)
print(f"Error loading data ({e})", file=sys.stderr)
sys.exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment