We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11861a2 commit b07bd05Copy full SHA for b07bd05
confluence_markdown_exporter/confluence.py
@@ -276,8 +276,12 @@ def export(self, export_path: StrPath) -> None:
276
if filepath.exists():
277
return
278
279
- response = confluence._session.get(str(confluence.url + self.download_link))
280
- response.raise_for_status() # Raise error if request fails
+ try:
+ response = confluence._session.get(str(confluence.url + self.download_link))
281
+ response.raise_for_status() # Raise error if request fails
282
+ except HTTPError:
283
+ print(f"There is no attachment with titel '{self.title}'. Skipping export.")
284
+ return
285
286
save_file(
287
filepath,
0 commit comments