diff --git a/organ/config.py b/organ/config.py index b84721a..cbc8a76 100644 --- a/organ/config.py +++ b/organ/config.py @@ -1,8 +1,12 @@ from os import environ -from dotenv import load_dotenv +try: + from dotenv import load_dotenv + + load_dotenv() +except ImportError: + pass -load_dotenv() ENVIRONMENT = environ.get('ENVIRONMENT', 'development') DB_URL = environ.get('DB_URL', 'postgresql://postgres:postgres@localhost:5432/organ')