Fixed an error when parsing a DM sent from an deleted account

This commit is contained in:
2021-05-14 09:52:19 -05:00
parent b10aeb046d
commit 2a791d43bf
2 changed files with 7 additions and 5 deletions

View File

@@ -77,8 +77,6 @@ def compose_tweet(tweet, db, relative_times, show_screen_names=False, session=No
return [user+", ", text, ts+", ", source]
def compose_direct_message(item, db, relative_times, show_screen_names=False, session=None):
# for a while this function will be together with compose_dm.
# this one composes direct messages based on events (new API Endpoints).
if system == "Windows":
# Let's remove the last 3 digits in the timestamp string.
# Twitter sends their "epoch" timestamp with 3 digits for milliseconds and arrow doesn't like it.