Skip to content
Snippets Groups Projects
Commit 715ccc1ac22d authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Code formatting (flake8 valid)

parent dbfb9451a23b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,8 @@
option if not recommended to allow users to have a password stored in odoo
at the same time as having a SALM provider and id.
This module is covered by the Gnu Affero General Public License, AGPLV3 or later
This module is covered by the GNU Affero General Public License, version 3 or
later.
The full source code and history can always be downloaded, modified
and redistributed from here:
......
......@@ -87,7 +87,7 @@
login.acceptSso()
except lasso.Error as error:
raise Exception(
'Invalid assertion : %s' % lasso.strError(error[0])
'Invalid assertion : %s' % lasso.strError(error[0])
)
attrs = {}
......@@ -142,10 +142,10 @@
elif not matching_value and matching_attribute != "subject.nameId":
raise Exception(
"Matching attribute %s not found in user attrs: %s" % (
matching_attribute,
attrs,
)
"Matching attribute %s not found in user attrs: %s" % (
matching_attribute,
attrs,
)
)
validation = {'user_id': matching_value}
......@@ -239,7 +239,10 @@
token
)
except (openerp.exceptions.AccessDenied, passlib.exc.PasswordSizeError):
except (
openerp.exceptions.AccessDenied,
passlib.exc.PasswordSizeError,
):
# since normal auth did not succeed we now try to find if the user
# has an active token attached to his uid
res = token_osv.search(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment