Skip to content

Commit c2acf4b

Browse files
committed
update
1 parent f988b26 commit c2acf4b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# stocksight Change Log
22

3+
## [0.1-b.6] = 2019-07-15
4+
### fixed
5+
- "TypeError: sequence item 0: expected str instance, int found" traceback error when running with -f twitteruserids.txt
6+
37
## [0.1-b.5] = 2019-01-11
48
### changed
59
- set encoding to utf-8 and checked for bytes when writing to twitteruserids.txt

sentiment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from config import *
4141

4242

43-
STOCKSIGHT_VERSION = '0.1-b.5'
43+
STOCKSIGHT_VERSION = '0.1-b.6'
4444
__version__ = STOCKSIGHT_VERSION
4545

4646
IS_PY3 = sys.version_info >= (3, 0)
@@ -459,7 +459,7 @@ def get_twitter_users_from_file(file):
459459
try:
460460
f = open(file, "rt", encoding='utf-8')
461461
for line in f.readlines():
462-
u = int(line.strip())
462+
u = line.strip()
463463
twitter_users.append(u)
464464
logger.debug(twitter_users)
465465
f.close()

0 commit comments

Comments
 (0)