Skip to content

Commit

Permalink
* nemo/nem.py: Uppercase constant exception messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- committed Oct 24, 2024
1 parent ba2ee5e commit 82fcc7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nemo/nem.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
try:
resp = requests.request('GET', url, timeout=5)
except requests.exceptions.Timeout as exc:
msg = f'timeout fetching {url}'
raise TimeoutError(msg) from exc
MSG = f'timeout fetching {url}'
raise TimeoutError(MSG) from exc
if not resp.ok:
msg = f'HTTP {resp.status_code}: {url}'
raise ConnectionError(msg)
MSG = f'HTTP {resp.status_code}: {url}'
raise ConnectionError(MSG)
traceinput = io.StringIO(resp.text)

demand = pd.read_csv(traceinput, comment='#', sep=',')
Expand Down

0 comments on commit 82fcc7d

Please sign in to comment.