Skip to content

Commit

Permalink
Fix MyPy error for reals
Browse files Browse the repository at this point in the history
  • Loading branch information
epicserve committed Jan 18, 2025
1 parent 782d35a commit 956520e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/settings/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
# Get the IP to use for Django Debug Toolbar when developing with docker
if env.bool("USE_DOCKER", default=False) is True:
ip = socket.gethostbyname(socket.gethostname())
if ip is not None:
INTERNAL_IPS += [ip[:-1] + "1"]
if INTERNAL_IPS is None: # Ensure INTERNAL_IPS is a list
INTERNAL_IPS = []
INTERNAL_IPS += [ip[:-1] + "1"]

# Application definition

Expand Down

0 comments on commit 956520e

Please sign in to comment.