Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shirosaidev committed Jul 16, 2019
1 parent f988b26 commit c2acf4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# stocksight Change Log

## [0.1-b.6] = 2019-07-15
### fixed
- "TypeError: sequence item 0: expected str instance, int found" traceback error when running with -f twitteruserids.txt

## [0.1-b.5] = 2019-01-11
### changed
- set encoding to utf-8 and checked for bytes when writing to twitteruserids.txt
Expand Down
4 changes: 2 additions & 2 deletions sentiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from config import *


STOCKSIGHT_VERSION = '0.1-b.5'
STOCKSIGHT_VERSION = '0.1-b.6'
__version__ = STOCKSIGHT_VERSION

IS_PY3 = sys.version_info >= (3, 0)
Expand Down Expand Up @@ -459,7 +459,7 @@ def get_twitter_users_from_file(file):
try:
f = open(file, "rt", encoding='utf-8')
for line in f.readlines():
u = int(line.strip())
u = line.strip()
twitter_users.append(u)
logger.debug(twitter_users)
f.close()
Expand Down

0 comments on commit c2acf4b

Please sign in to comment.