Skip to content

Commit

Permalink
Fix dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
avgupta456 committed Nov 13, 2023
1 parent b2f3836 commit f35eac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/src/main.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from typing import Dict

import sentry_sdk
from dotenv import load_dotenv # type: ignore
from dotenv import load_dotenv, find_dotenv # type: ignore
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from google.api_core.exceptions import AlreadyExists
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware

load_dotenv()
load_dotenv(find_dotenv())

# flake8: noqa E402

Expand Down
4 changes: 2 additions & 2 deletions backend/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from dotenv import load_dotenv # type: ignore
from dotenv import load_dotenv, find_dotenv # type: ignore

load_dotenv(dotenv_path="")
load_dotenv(find_dotenv(), verbose=True)

0 comments on commit f35eac0

Please sign in to comment.