Commit 75fd7cb1 by Serbaf

trying to track error due to strange symbols in tweets

parent 7a7e5b66
......@@ -395,7 +395,13 @@ def get_tweet_from_csv_line(header_fields, line_fields):
tweet_contents[header_fields[i].replace(".", "__")] =\
line_fields[i]
return Tweet(**tweet_contents)
try:
tweet = Tweet(**tweet_contents)
except Exception as e:
print("An error of type " + type(e).__str__ + "ocurred")
raise Exception
return tweet
def get_tweets_from_csv(csv_file):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment