Skip to content

Commit

Permalink
Merge pull request #35 from GeoNodeUserGroup-DE/issue_#33_refector_Ge…
Browse files Browse the repository at this point in the history
…onodeEnv_to_be_more_useable_lib_mode

[Fixes #33] refector GeonodeEnv to be more usable lib mode
  • Loading branch information
mwallschlaeger authored Apr 11, 2024
2 parents dfd76b6 + f38d739 commit f92f573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonoderest/apiconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def from_env_vars() -> "GeonodeApiConf":
"""
Creates a new GeonodeApiConf object from environment variables
"""
if not ["GEONODE_API_URL", "GEONODE_API_BASIC_AUTH"] in os.environ:
if not "GEONODE_API_URL" in os.environ or "GEONODE_API_BASIC_AUTH" not in os.environ:
raise SystemExit(
"env vars not set: GEONODE_API_URL, GEONODE_API_BASIC_AUTH"
)
Expand Down

0 comments on commit f92f573

Please sign in to comment.