Skip to content

Commit 76d21be

Browse files
authored
removed f-strings, types and trailing spaces.
1 parent 11d26c6 commit 76d21be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

atlassian/confluence.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def page_exists(self, space, title, type=None):
136136
else:
137137
return False
138138

139-
def share_with_others(self,page_id:str, group:list, message:str):
139+
def share_with_others(self,page_id, group, message):
140140
"""
141141
Notify members (currently only groups implemented) about something on that page
142142
"""
@@ -150,10 +150,10 @@ def share_with_others(self,page_id:str, group:list, message:str):
150150
"note": message
151151
#"users":[]
152152
}
153-
r = self.post(url, json=params,headers={"contentType":"application/json; charset=utf-8"},advanced_mode=True,)
153+
r = self.post(url, json=params,headers={"contentType":"application/json; charset=utf-8"},advanced_mode=True)
154154
if r.status_code != 200:
155-
raise Exception(f"failed sharing content {r.status_code}: {r.text}")
156-
155+
raise Exception("failed sharing content {code}: {reason}".format(code=r.status_code,reason=r.text))
156+
157157
def get_page_child_by_type(self, page_id, type="page", start=None, limit=None, expand=None):
158158
"""
159159
Provide content by type (page, blog, comment)

0 commit comments

Comments
 (0)