diff --git a/.travis.yml b/.travis.yml index c58be69f..5f06d4c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,9 @@ python: - "2.7" env: - - VERSION="7.0" ODOO_REPO="odoo/odoo" - - VERSION="7.0" ODOO_REPO="OCA/OCB" + - VERSION="7.0" LINT_CHECK=1 + - VERSION="7.0" ODOO_REPO="odoo/odoo" LINT_CHECK=0 + - VERSION="7.0" ODOO_REPO="OCA/OCB" LINT_CHECK=0 virtualenv: system_site_packages: true diff --git a/attachment_preview/model/ir_attachment.py b/attachment_preview/model/ir_attachment.py index 908247ff..b00d3474 100644 --- a/attachment_preview/model/ir_attachment.py +++ b/attachment_preview/model/ir_attachment.py @@ -49,8 +49,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]))