Skip to content

Commit 6cdf672

Browse files
authored
[Examples] Build warnings fixed: Unused import and variable removed. (#710)
1 parent 5ddd447 commit 6cdf672

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/confluence/confluence_attach_file.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
# https://pypi.org/project/python-magic/
99
import magic
10-
from datetime import datetime
1110
from atlassian import Confluence
1211

1312
logging.basicConfig(level=logging.DEBUG)
@@ -27,7 +26,7 @@ def attach_file(page_title, file_location, file_name, mime_type, space):
2726
confluence.attach_file(
2827
filename=file_location, name=file_name, content_type=mime_type, page_id=page_id, space=space
2928
)
30-
except Exception as e:
29+
except Exception:
3130
return 1
3231
return 0
3332

0 commit comments

Comments
 (0)