mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
Improvement:
- handling unknown model slot
This commit is contained in:
parent
f55f1f2938
commit
e897512ee1
@ -234,7 +234,8 @@ class VoiceChangerManager(ServerDeviceCallbacks):
|
|||||||
self.voiceChanger.setModel(self.voiceChangerModel)
|
self.voiceChanger.setModel(self.voiceChangerModel)
|
||||||
else:
|
else:
|
||||||
print(f"[Voice Changer] unknown voice changer model: {slotInfo.voiceChangerType}")
|
print(f"[Voice Changer] unknown voice changer model: {slotInfo.voiceChangerType}")
|
||||||
del self.voiceChangerModel
|
if hasattr(self, "voiceChangerModel"):
|
||||||
|
del self.voiceChangerModel
|
||||||
return
|
return
|
||||||
|
|
||||||
def update_settings(self, key: str, val: str | int | float):
|
def update_settings(self, key: str, val: str | int | float):
|
||||||
|
Loading…
Reference in New Issue
Block a user