fix rule adding, (some) random crashing

This commit is contained in:
muskit
2023-01-23 22:37:21 -08:00
parent f4abde0c3b
commit 7bf33bdc4c
4 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -80,6 +80,7 @@ class TalentTweet:
@staticmethod
def create_from_v2api_response(resp):
tweet = resp.data
if tweet is None: return None
mrq = twapi.TwAPI.get_mrq(resp)
rt_target = None
@@ -181,4 +182,4 @@ class TalentTweet:
def get_datetime_str(self):
unpad = '#' if platform.system() == 'Windows' else '-'
return self.date_time.strftime(f'%b %{unpad}d %Y, %{unpad}I:%M%p (%Z)')
return self.date_time.strftime(f'%b %{unpad}d %Y, %{unpad}I:%M%p (%Z)')