- tweeter_screen = status.user.screen_name.encode('UTF-8', 'replace')
- tweeter_name = status.user.name.encode('UTF-8', 'replace')
+ #print status, type(status), status=={}
+ if status == {}:
+ return "twitapi.GetStatus returned nothing :-("
+ if status.user == None and status.text == None:
+ return "Empty status object returned :("
+ if status.user is not None:
+ tweeter_screen = status.user.screen_name.encode('UTF-8', 'replace')
+ tweeter_name = status.user.name.encode('UTF-8', 'replace')
+ else:
+ tweeter_screen = "[not returned]" ; tweeter_name = "[not returned]"