Skip to content

Commit f5392be

Browse files
committed
use correct exception
1 parent 802daf9 commit f5392be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/python_scripts/add_usernames_in_firebase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def update_username(uid):
1616
ref = fb_db.reference(f"v2/users/{user.uid}/username")
1717
ref.set(username)
1818
logger.info(f"updated username for user {uid}: {username}")
19-
except Exception:
19+
except auth.UserNotFoundError:
2020
logger.info(f"could not find user {uid} in firebase to update username.")
2121

2222

0 commit comments

Comments
 (0)