fix error in accessing attribute of TweepError