Skip to content

Commit da0b696

Browse files
committed
Try to fix TypeError for password
1 parent e0b5285 commit da0b696

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/source_repo/svn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,13 @@ def pysvn_callback_get_login(realm, callback_username, may_save):
6767

6868
return_username = username
6969
return_password = password
70-
return_code = return_username and return_password
70+
return_code = True if return_username and return_password else False
7171
save_credentials = True
7272

7373
return return_code, return_username, return_password, save_credentials
7474

7575
pysvn_client.callback_get_login = pysvn_callback_get_login
7676

77-
7877
return pysvn_client
7978

8079

0 commit comments

Comments
 (0)