Skip to content

Commit

Permalink
8.0 Use try/except when importing external libs (OCA#8)
Browse files Browse the repository at this point in the history
[FIX] LINT

Use try/except when importing external libs
Remove self.ensure_one() that has nothing to do in an api.model method
  • Loading branch information
Alexis de Lattre authored and thienvh332 committed Dec 26, 2023
1 parent 7aa6f3e commit 5868391
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
try:
import phonenumbers
except ImportError:
logger.warning('Cannot import phonenumbers')
logger.debug('Cannot import phonenumbers')


class BusinessDocumentImport(models.AbstractModel):
Expand Down

0 comments on commit 5868391

Please sign in to comment.