mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[FIX] new flake8 rules
This commit is contained in:
parent
bec3d8f88b
commit
cffad236ba
@ -46,8 +46,8 @@ class IrAttachment(Model):
|
||||
try:
|
||||
import magic
|
||||
ms = magic.open(
|
||||
hasattr(magic, 'MAGIC_MIME_TYPE')
|
||||
and magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
||||
hasattr(magic, 'MAGIC_MIME_TYPE') and
|
||||
magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
||||
ms.load()
|
||||
mimetype = ms.buffer(
|
||||
base64.b64decode(this[binary_field]))
|
||||
|
Loading…
Reference in New Issue
Block a user