diff --git a/hydropandas/io/bro.py b/hydropandas/io/bro.py index 3ecc2f8d..db79e791 100644 --- a/hydropandas/io/bro.py +++ b/hydropandas/io/bro.py @@ -461,7 +461,7 @@ def _get_gmw_from_bro_id(bro_id, retries=0): gmws = tree.findall(".//dsgmw:GMW_PO", ns) if len(gmws) != 1: val_ind = req.text.find("valid") - valid = req.text[(val_ind + 9) : (val_ind + 14)] + 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"