Skip to content

Commit

Permalink
try both config imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NickTracker committed Aug 9, 2024
1 parent 7b91687 commit b450917
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from flask import Flask
from flask_cors import CORS
from config import Config
# temporary measure to make this import work for both tests and render build
try:
from config import Config
except ImportError:
from server.config import Config
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration

Expand Down

0 comments on commit b450917

Please sign in to comment.