Fixed a small traceback that was happening when translating a direct message

This commit is contained in:
2021-08-26 09:16:02 -05:00
parent 3d8519313e
commit f9864a887d
2 changed files with 2 additions and 2 deletions

View File

@@ -467,5 +467,5 @@ class viewNonTweet(widgetUtils.BaseDialog):
self.text.SetFocus()
def enable_button(self, buttonName):
if getattr(self, buttonName):
if hasattr(self, buttonName):
return getattr(self, buttonName).Enable()