missing return

This commit is contained in:
jr-k 2024-02-28 14:53:53 +01:00
parent 3ffac9370a
commit c73b265b28
3 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class ScreenManager:
def get(self, id: str) -> Optional[Screen]:
try:
self.hydrate_object(self._db.get_by_id(id), id)
return self.hydrate_object(self._db.get_by_id(id), id)
except IdDoesNotExistError:
return None

View File

@ -31,7 +31,7 @@ class SlideManager:
def get(self, id: str) -> Optional[Slide]:
try:
self.hydrate_object(self._db.get_by_id(id), id)
return self.hydrate_object(self._db.get_by_id(id), id)
except IdDoesNotExistError:
return None
@ -83,6 +83,7 @@ class SlideManager:
def delete(self, id: str) -> None:
slide = self.get(id)
print(id)
if slide:
if slide.has_file():

View File

@ -53,7 +53,7 @@ class VariableManager:
def get(self, id: str) -> Optional[Variable]:
try:
self.hydrate_object(self._db.get_by_id(id), id)
return self.hydrate_object(self._db.get_by_id(id), id)
except IdDoesNotExistError:
return None