Undeefined name: Except --> Exception
__Except__ is an undefined name in this context with the potential to raise __NameError__ at runtime instead of the desired Exception and message.
@@ -39,7 +39,7 @@ class GoogleTTSValidator(TTSValidator):
def validate_connection(self):
try:
gTTS(text='Hi').save(self.tts.filename)
- except Except:
+ except Exception:
raise Exception(
'GoogleTTS server could not be verified. Please check your '
'internet connection.')
