Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pwoolvett committed Jul 15, 2019
1 parent 4cd3f14 commit a5597f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions petri/base_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class Config: # pylint: disable=missing-docstring,too-few-public-methods
def read_env(cls, app_name: str = "") -> Optional[str]:
"""Allow custom `ENV` to be loaded depending on cls."""

if app_name == "petri":
return environ.get("PETRI_ENV", "development")
else:
if app_name != "petri":
return environ.get("ENV")

return environ.get("PETRI_ENV", "development")

@classmethod
def from_env(
cls: Type[Conf], main_file: Path, app_name: str, **cls_data
Expand Down

0 comments on commit a5597f5

Please sign in to comment.