Skip to content

Commit

Permalink
try to please flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Jul 11, 2024
1 parent e39ee3f commit 88191f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydropandas/io/bro.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ def _get_gmw_from_bro_id(bro_id, retries=0):

gmws = tree.findall(".//dsgmw:GMW_PO", ns)
if len(gmws) != 1:
valid = req.text[req.text.find("valid") + 9 : req.text.find("valid") + 14]
val_ind = req.text.find("valid")
valid = req.text[(val_ind + 9) : (val_ind + 14)]
if valid == "false" and retries < 5:
logger.debug(
f"got invalid response for {bro_id}, trying again {retries+1}/4"
Expand Down

0 comments on commit 88191f7

Please sign in to comment.