ash16 / TYTS

0 stars 1 forks source link

bare-except #18

Open rz2390 opened 5 years ago

rz2390 commented 5 years ago

https://github.com/ash16/TYTS/blob/c13ea69e5337df93cd12c7e8b882b7c2734511ba/buddingEmotion.py#L70-L71

This except clause does not have a specified exceptions type to catch. This could have potential issues since your design might have other operations for some other exceptions rather than simply reporting the error. Or, if we want to use this general exception, we could print out the real error rather than just hard code ``error'' as the message.