--- a/server/python/junius/bootstrap.py
+++ b/server/python/junius/bootstrap.py
@@ -40,17 +40,17 @@ def setup_twitter_account(dbs):
import os, os.path
configPath = os.path.join(os.environ['HOME'], ".junius_twitter")
if not os.path.isfile(configPath):
print "Skipping twitter - no config file '%s'" % (configPath,)
return
f = open(configPath, 'r')
data = f.read()
f.close()
- username, password = data.split(',')
+ username, password = data.strip().split(',')
account = model.Account(
kind='twitter', username=username, password=password,
)
account.store(dbs.accounts)
def setup_skype_account(dbs):
# For now we just use whoever is currently logged into skype (but we