Skip to content

Fix empty report creation when no IPs found in file#22

Merged
AlteredCoder merged 1 commit intocrowdsecurity:mainfrom
LaurenceJJones:fix/bail-on-zero-ips
Feb 9, 2026
Merged

Fix empty report creation when no IPs found in file#22
AlteredCoder merged 1 commit intocrowdsecurity:mainfrom
LaurenceJJones:fix/bail-on-zero-ips

Conversation

@LaurenceJJones
Copy link
Member

Bail early when file scan finds 0 valid IP addresses instead of creating an empty report with NaN% values.

Fixes #19

Bail early when file scan finds 0 valid IP addresses instead of
creating an empty report with NaN% values.

Fixes crowdsecurity#19

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@AlteredCoder AlteredCoder merged commit fa70f16 into crowdsecurity:main Feb 9, 2026
2 checks passed
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.

bail if 0 addresses are found?

2 participants