Skip to content

Commit

Permalink
fix #2102
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 20, 2024
1 parent e8f6477 commit df02ef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bbot/modules/filedownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ async def download_file(self, url, content_type=None, source_event=None):
file_event = self.make_event(
{"path": str(file_destination)}, "FILESYSTEM", tags=["filedownload", "file"], parent=source_event
)
await self.emit_event(file_event)
if file_event is not None:
await self.emit_event(file_event)
self.urls_downloaded.add(hash(url))

def make_filename(self, url, content_type=None):
Expand Down

0 comments on commit df02ef3

Please sign in to comment.