mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix pylint error (unnecessary 'finally' clause may swallow exceptions unintentionally)
This commit is contained in:
parent
5b5b4d8fe9
commit
e1a7bb5e7b
1 changed files with 3 additions and 4 deletions
|
@ -2234,10 +2234,9 @@ class ClearFuncs(object):
|
|||
break
|
||||
except KeyError:
|
||||
pass
|
||||
finally:
|
||||
if '*' not in eauth_users and token['name'] not in eauth_users and not group_auth_match:
|
||||
log.warning('Authentication failure of type "token" occurred.')
|
||||
return ''
|
||||
if '*' not in eauth_users and token['name'] not in eauth_users and not group_auth_match:
|
||||
log.warning('Authentication failure of type "token" occurred.')
|
||||
return ''
|
||||
|
||||
# Compile list of authorized actions for the user
|
||||
auth_list = []
|
||||
|
|
Loading…
Add table
Reference in a new issue