Improvement:

- handling unknown model slot
This commit is contained in:
w-okada 2023-07-10 02:27:51 +09:00
parent f55f1f2938
commit e897512ee1

View File

@ -234,7 +234,8 @@ class VoiceChangerManager(ServerDeviceCallbacks):
self.voiceChanger.setModel(self.voiceChangerModel)
else:
print(f"[Voice Changer] unknown voice changer model: {slotInfo.voiceChangerType}")
del self.voiceChangerModel
if hasattr(self, "voiceChangerModel"):
del self.voiceChangerModel
return
def update_settings(self, key: str, val: str | int | float):