joshfraser / robinhood-to-csv

Python script to export Robinhood trades to a CSV file
MIT License
259 stars 109 forks source link

Log-in error #44

Closed ysriram1 closed 5 years ago

ysriram1 commented 5 years ago

When I am trying to run the csv script, this is what I'm getting:

>>> python csv-export.py 

Traceback (most recent call last):
  File "csv-options-export.py", line 52, in <module>
    if logged_in != True and logged_in.get('non_field_errors') == None and logged_in['mfa_required'] == True:
KeyError: 'mfa_required'

Any ideas on how I can fix this?

codejump commented 5 years ago

https://github.com/joshfraser/robinhood-to-csv/pull/42

Look at the pull request

joshfraser commented 5 years ago

Merged in @martinmelin's PR. Let me know if this doesn't fix it.

ysriram1 commented 5 years ago

Thank you! This fixed the issue for csv-export.py, the csv-options-export.py still gets the same error, but I was able to run the options script by simply updating the code the same way as we did for csv-export.py file.