Show dialog on suspended users again. closes #387

This commit is contained in:
Manuel Cortez 2021-07-03 14:09:52 -05:00
parent 465b550c30
commit ccba22cfd2

View File

@ -27,7 +27,7 @@ class profileController(object):
except TweepError as err: except TweepError as err:
if err.api_code == 50: if err.api_code == 50:
wx.MessageDialog(None, _(u"That user does not exist"), _(u"Error"), wx.ICON_ERROR).ShowModal() wx.MessageDialog(None, _(u"That user does not exist"), _(u"Error"), wx.ICON_ERROR).ShowModal()
if err.api_code == 403: if err.api_code == 63:
wx.MessageDialog(None, _(u"User has been suspended"), _(u"Error"), wx.ICON_ERROR).ShowModal() wx.MessageDialog(None, _(u"User has been suspended"), _(u"Error"), wx.ICON_ERROR).ShowModal()
log.error("error %d: %s" % (err.api_code, err.reason)) log.error("error %d: %s" % (err.api_code, err.reason))
return return