Skip to content

Commit

Permalink
Until schemas exist for all XML responses, consider AttributeErrors a…
Browse files Browse the repository at this point in the history
…re parsing errors, plus one last version bump...
  • Loading branch information
mbugert committed Apr 18, 2020
1 parent 36fb4a9 commit a16966b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connectbox_exporter/connectbox_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def collect(self):

scrape_duration[extractor.name] = post_scrape_time - pre_scrape_time
scrape_success[extractor.name] = True
except XMLSyntaxError as e:
except (XMLSyntaxError, AttributeError) as e:
# in case of a less serious error, log and continue scraping the next extractor
self.logger.error(repr(e))
except (ConnectionError, Timeout) as e:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="connectbox-prometheus",
version="0.2.4",
version="0.2.5",
author="Michael Bugert",
author_email="[email protected]",
description='Prometheus exporter for Compal CH7465LG cable modems, commonly sold as "Connect Box"',
Expand Down

0 comments on commit a16966b

Please sign in to comment.