Skip to content

Commit 956520e

Browse files
committed
Fix MyPy error for reals
1 parent 782d35a commit 956520e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/settings/_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
# Get the IP to use for Django Debug Toolbar when developing with docker
3838
if env.bool("USE_DOCKER", default=False) is True:
3939
ip = socket.gethostbyname(socket.gethostname())
40-
if ip is not None:
41-
INTERNAL_IPS += [ip[:-1] + "1"]
40+
if INTERNAL_IPS is None: # Ensure INTERNAL_IPS is a list
41+
INTERNAL_IPS = []
42+
INTERNAL_IPS += [ip[:-1] + "1"]
4243

4344
# Application definition
4445

0 commit comments

Comments
 (0)