Skip to content

Commit

Permalink
Use more precise and faster check.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Mar 7, 2024
1 parent 6328790 commit 93265a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yellowstone/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def uses_admin_members(self, site_slug: str) -> bool:

def getenv(var_name) -> str:
value = os.getenv(var_name)
if not value:
if value is None:
raise RuntimeError(f"No value for environment variable {var_name}")
return value

0 comments on commit 93265a8

Please sign in to comment.