Skip to content

Commit 2571168

Browse files
committed
Fix load_dotenv
1 parent 4bdc4a1 commit 2571168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alphaconf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _load_dotenv(self, load_dotenv: Optional[bool] = None):
161161
_log.debug('Loading dotenv')
162162
dotenv.load_dotenv()
163163
except ModuleNotFoundError:
164-
if not load_dotenv:
164+
if load_dotenv:
165165
raise
166166
_log.debug('dotenv is not installed')
167167

0 commit comments

Comments
 (0)