Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tweet_model
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
serpucga
tweet_model
Commits
75fd7cb1
Commit
75fd7cb1
authored
Apr 11, 2019
by
Serbaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to track error due to strange symbols in tweets
parent
7a7e5b66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tweet_model.py
tweet_model/tweet_model.py
+7
-1
No files found.
tweet_model/tweet_model.py
View file @
75fd7cb1
...
@@ -395,7 +395,13 @@ def get_tweet_from_csv_line(header_fields, line_fields):
...
@@ -395,7 +395,13 @@ def get_tweet_from_csv_line(header_fields, line_fields):
tweet_contents
[
header_fields
[
i
]
.
replace
(
"."
,
"__"
)]
=
\
tweet_contents
[
header_fields
[
i
]
.
replace
(
"."
,
"__"
)]
=
\
line_fields
[
i
]
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
):
def
get_tweets_from_csv
(
csv_file
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment