Skip to content

Commit

Permalink
[FIX](handlers) add return value to select engine
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 25, 2022
1 parent a91f5f3 commit e6328ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hourglass_tensorflow/handlers/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def heatmap(self) -> HTFDatasetHeatmap:

def select_engine(self, data: Any) -> HTFEngine:
try:
self.engine = self._engines[type(data)](metadata=self._metadata)
return self._engines[type(data)](metadata=self._metadata)
except KeyError:
raise KeyError(f"No engine available for type {type(data)}")

Expand Down

0 comments on commit e6328ab

Please sign in to comment.