Skip to content

Commit

Permalink
Minor changes and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mbugert committed May 3, 2020
1 parent a5eb078 commit d26c9d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion connectbox_exporter/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def load_config(config_file: Union[str, Path]) -> Dict:
raise ValueError(f"Invalid exporter port.")

if not config[EXPORTER][EXTRACTORS]:
raise ValueError("At least one family of metrics needs to be specified.")
raise ValueError(
"The config file needs to specify at least one family of metrics."
)
config[EXPORTER][EXTRACTORS] = sorted(set(config[EXPORTER][EXTRACTORS]))

return config
2 changes: 1 addition & 1 deletion connectbox_exporter/xml2metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def get_metrics_extractor(ident: str):
}
if not ident in extractors.keys():
raise ValueError(
f"Unknown extractor '{ident}', supported are: {','.join(extractors.keys())}"
f"Unknown extractor '{ident}', supported are: {', '.join(extractors.keys())}"
)
cls = extractors[ident]
return cls()
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.5",
version="0.2.6",
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 d26c9d6

Please sign in to comment.