Skip to content

Commit

Permalink
Tuning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nardi committed Mar 12, 2024
1 parent e484853 commit 6d67559
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/banip/country_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
from banip.contants import RENDERED_BLACKLIST
from banip.utilities import clear

target_country = sys.argv[1].upper()
try:
target_country = sys.argv[1].upper()
except IndexError:
print("Please provide a two-letter country code.")
sys.exit(1)

regex = r"(?<=[\s=])(\w+)=([^=\s]+)(?=\s|$)"
LOGS = HOME / "data/logs.txt"
clear()
Expand Down

0 comments on commit 6d67559

Please sign in to comment.