Skip to content

Commit

Permalink
Return None on slotIndex -1
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Aug 10, 2024
1 parent f18fab3 commit 75e3e2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/voice_changer/ModelSlotManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def getAllSlotInfo(self, reload: bool = False):
return self.modelSlots

def get_slot_info(self, slotIndex: int):
if slotIndex == -1:
return
return self._load_model_slot(slotIndex)

def save_model_slot(self, slotIndex: int, slotInfo: ModelSlots):
Expand Down

0 comments on commit 75e3e2e

Please sign in to comment.