File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -621,10 +621,19 @@ def close_process_dialog(pdlg):
621621 pdlg .setValue (1 )
622622
623623 msc_url = config ["mscolab_server_url" ]
624- msc_auth_password = mslib .utils .auth .get_password_from_keyring (service_name = f"MSCOLAB_AUTH_{ msc_url } " ,
625- username = "mscolab" )
626- msc_username = config ["MSS_auth" ][msc_url ]
627- msc_password = mslib .utils .auth .get_password_from_keyring (service_name = msc_url , username = msc_username )
624+ try :
625+ msc_auth_password = mslib .utils .auth .get_password_from_keyring (service_name = f"MSCOLAB_AUTH_{ msc_url } " ,
626+ username = "mscolab" )
627+ except KeyError :
628+ msc_auth_password = None
629+
630+ try :
631+ msc_username = config ["MSS_auth" ][msc_url ]
632+ except KeyError :
633+ msc_username = None
634+ msc_password = None
635+ if msc_username is not None :
636+ msc_password = mslib .utils .auth .get_password_from_keyring (service_name = msc_url , username = msc_username )
628637
629638 # Choose view (top or side)
630639 if view == "top" :
You can’t perform that action at this time.
0 commit comments