From 35bcf4bc57ed250ad9b4dd068e39ae24443af431 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Tue, 18 Apr 2023 23:32:53 +0200 Subject: [PATCH] Fix lint --- CHANGELOG.md | 2 +- cert_host_scraper/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e3656..e697c0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # 0.7.5 - Fix `--status-code` filter -- +- # 0.7.4 - Validate `--status-code` between 100 and 599 diff --git a/cert_host_scraper/cli.py b/cert_host_scraper/cli.py index a6a3fe9..d13831d 100644 --- a/cert_host_scraper/cli.py +++ b/cert_host_scraper/cli.py @@ -22,7 +22,7 @@ def validate_status_code( status_code = int(value) if not (100 <= status_code <= 599): raise click.BadParameter("status code must be between 100 and 599") - + return status_code except ValueError: raise click.BadParameter("must be an integer")