missing return
This commit is contained in:
parent
3ffac9370a
commit
c73b265b28
@ -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
|
||||
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user