Skip to content

Commit

Permalink
whois/settings.py: Raise ValueError is the APP_IP_MASK variable was n…
Browse files Browse the repository at this point in the history
…ot set
  • Loading branch information
EduKav1813 committed Oct 23, 2024
1 parent 5154fb7 commit a5105ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion whois/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@

# production
# ip_mask = "192.168.88.1-255"
ip_mask = os.environ.get("APP_IP_MASK", "192.168.88.1-255")
ip_mask = os.environ.get("APP_IP_MASK", None)
if not ip_mask:
raise ValueError("ERROR: APP_IP_MASK environment variable was not set!")

0 comments on commit a5105ab

Please sign in to comment.