Skip to content

Commit

Permalink
fix: make save_files_to_disk non_async
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasNeugebauer committed Mar 3, 2025
1 parent 0992d57 commit 7c288a2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions learning_loop_node/detector/outbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ async def save(self,

await self._trim_upload_queue()

async def save_files_to_disk(self,
identifier: str,
image: bytes,
image_metadata: ImageMetadata,
tags: List[str],
source: Optional[str],
creation_date: Optional[str]) -> None:
def save_files_to_disk(self,
identifier: str,
image: bytes,
image_metadata: ImageMetadata,
tags: List[str],
source: Optional[str],
creation_date: Optional[str]) -> None:
if os.path.exists(self.path + '/' + identifier):
raise FileExistsError(f'Directory with identifier {identifier} already exists')

Expand Down

0 comments on commit 7c288a2

Please sign in to comment.