From d62105ddb786003645c62dbe2d14453cd878f867 Mon Sep 17 00:00:00 2001 From: offa Date: Thu, 28 Jan 2021 16:36:07 +0100 Subject: [PATCH] [Examples] Build warnings fixed: Unused import and variable removed. --- examples/confluence/confluence_attach_file.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/confluence/confluence_attach_file.py b/examples/confluence/confluence_attach_file.py index 9a873cdc4..3ff063a5d 100644 --- a/examples/confluence/confluence_attach_file.py +++ b/examples/confluence/confluence_attach_file.py @@ -7,7 +7,6 @@ # https://pypi.org/project/python-magic/ import magic -from datetime import datetime from atlassian import Confluence logging.basicConfig(level=logging.DEBUG) @@ -27,7 +26,7 @@ def attach_file(page_title, file_location, file_name, mime_type, space): confluence.attach_file( filename=file_location, name=file_name, content_type=mime_type, page_id=page_id, space=space ) - except Exception as e: + except Exception: return 1 return 0