Skip to content

Commit 8befc97

Browse files
committed
merging
2 parents 44fe8c9 + 8686d2f commit 8befc97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

printer/modules/collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def scrape_html(ip):
9292
try:
9393
pages_remaining = int(element.text.strip())
9494
metrics_handler.snmp_metric.labels(name="pages_remaining", ip=ip).set(pages_remaining)
95-
except Exception:
96-
pass
95+
except ValueError:
96+
continue
9797

9898
def scrape_snmp(ip_list, sleep_duration_minutes=5):
9999
while True:

0 commit comments

Comments
 (0)