Skip to content

Commit a42a3c7

Browse files
committed
[fix] Crash on non-existing variable
If personal access token can't be queried due to some DB issue, then it crashes on reading an unset variable.
1 parent 7b89545 commit a42a3c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/server/codechecker_server/session_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ def __try_personal_access_token(self, auth_string):
623623
return None
624624

625625
user_name, token = auth_string.split(':', 1)
626+
personal_access_token = None
626627

627628
transaction = None
628629
try:

0 commit comments

Comments
 (0)