Skip to content

Commit 370453a

Browse files
Update geonode/settings.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent e5d74a7 commit 370453a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geonode/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@
969969
try:
970970
# try to parse python notation, default in dockerized env
971971
ALLOWED_HOSTS = ast.literal_eval(os.getenv("ALLOWED_HOSTS"))
972-
except ValueError:
972+
except (ValueError, SyntaxError):
973973
# fallback to regular list of values separated with misc chars
974974
ALLOWED_HOSTS = (
975975
[HOSTNAME, "localhost", "django", "geonode"]

0 commit comments

Comments
 (0)