Skip to content

Conversation

mib1185
Copy link
Collaborator

@mib1185 mib1185 commented Feb 19, 2025

@coveralls
Copy link

Coverage Status

coverage: 96.856% (+0.03%) from 96.83%
when pulling 3e85a74 on mib1185:fallback-to-getdevicelistinfos-in-wait-txbusy
into 23ee7f6 on hthiery:master.

@mib1185 mib1185 merged commit 2aab086 into hthiery:master Feb 19, 2025
13 checks passed
@mib1185 mib1185 deleted the fallback-to-getdevicelistinfos-in-wait-txbusy branch February 19, 2025 19:05
try:
plain = self.get_device_infos(ain)
dom = ElementTree.fromstring(plain)
except exceptions.HTTPError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mib1185,
I think we should check for the status code here, to avoid sending more requests to the box in case of other errors 🙂.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh. I can not predict if there are other codes besides 400 returned on even older FritzOS - because of this and that it would only be one additional request for the whole login session, i've not add a check for the response code, but just for httperrors - if there will be an connection error, then it will raise as already done before

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember getting 503 from a Fritzbox while testing something, but I don't remember how that happened 😉.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No longer working with older Fritz!OS Versions (<7.24) since 0.6.14
3 participants