Skip to content

Commit

Permalink
[16.0][FIX] users_ldap_groups: move import to top
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Jun 4, 2024
1 parent 4048be3 commit 6dcf353
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions users_ldap_groups/models/res_company_ldap_operator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright 2012-2018 Therp BV <https://therp.nl>
# Copyright 2018 Brainbean Apps <https://brainbeanapps.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import base64
from logging import getLogger
from string import Template

Expand Down Expand Up @@ -44,8 +45,6 @@ def _query(self, ldap_entry, mapping):
return bool(results)

def safe_ldap_decode(self, attr):
import base64

try:
return attr.decode()
except UnicodeDecodeError:
Expand Down

0 comments on commit 6dcf353

Please sign in to comment.