Try catch at start
This commit is contained in:
@@ -23,6 +23,8 @@ def create_app():
|
|||||||
|
|
||||||
# oracledb.init_oracle_client(lib_dir=None)
|
# oracledb.init_oracle_client(lib_dir=None)
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
# Load configuration
|
# Load configuration
|
||||||
@@ -57,3 +59,5 @@ def create_app():
|
|||||||
migrate.init_app(app, db)
|
migrate.init_app(app, db)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
except Exception as e:
|
||||||
|
print(f"An unexpected error occurred: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user