Boltz79 commited on
Commit
9c390c2
·
verified ·
1 Parent(s): c1359ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -21,6 +21,8 @@ from google.cloud import storage
21
 
22
  # Update the path below to your Firebase service account key JSON file
23
  SERVICE_ACCOUNT_KEY = "serviceAccountKey.json" # <-- Ensure this file exists in your project directory
 
 
24
 
25
  # Initialize Firebase Admin for Realtime Database
26
  cred = credentials.Certificate(SERVICE_ACCOUNT_KEY)
 
21
 
22
  # Update the path below to your Firebase service account key JSON file
23
  SERVICE_ACCOUNT_KEY = "serviceAccountKey.json" # <-- Ensure this file exists in your project directory
24
+ if not os.path.exists(SERVICE_ACCOUNT_KEY):
25
+ raise FileNotFoundError(f"Firebase credentials file {SERVICE_ACCOUNT_KEY} not found!")
26
 
27
  # Initialize Firebase Admin for Realtime Database
28
  cred = credentials.Certificate(SERVICE_ACCOUNT_KEY)