Open danhenriquesc opened 9 months ago
+1 facing the same issue. (only for checking account, credit card still working fine)
Now I'm getting this error: "[222] @property def full_statement_op(self): return self._soup.find("a").attrs["data-op"]
KeyError: 'data-op''" Does anyone know what could be causing this?
So, even after the new release, I still had the same issue as @FernandoGaspar mentioned.
After debugging for a while, I realized the find("a")
returns only the first item on that Menu, which doesn't have the data-op
attribute. I don't know if Itau switched the menu order or something, but I realized the second item on that menu was exactly what we were looking for at that time. So I locally just changed to use the second link:
return self._soup.find_all("a")[1].attrs["data-op"]
I am aware this is not the most reliable solution, so maybe would be nice to filter all the links on that menu to find the one which has the link to the statements page (using the link name/title maybe??). if you guys have any idea how to do the filtering I would be happy to open a PR for it.
@FernandoGaspar can you try the same patch and see if it fixes the issue for you?
Since yesterday I started receiving the following error when loading account statement