SCCapstone / Social-Monomania

Webapp designed to analyze social media posts!
https://socialmonomania.herokuapp.com/
MIT License
7 stars 0 forks source link

Error catching for Twitter results export #88

Closed phileepae closed 6 years ago

phileepae commented 6 years ago

User gets errors if Twitter Object is empty and the export is attempted.

Twitter Errors: When twitter box is not selected, search is performed, export button is pressed: TypeError at /download/ string indices must be integers, not str _Note: error is at socialmonomania\views.py in download, line 134

When twitter box is selected, search is performed, twitter object is empty, export button is pressed (search for a special character, such as underscore, to yield these results): KeyError at /download/ 'statuses' _Note: error is at socialmonomania\views.py in download, line 134

Sorrento110 commented 6 years ago

We probably need to only run the twitter export portion when we have the box ticked and a nonempty results object.

Sorrento110 commented 6 years ago

Also @phileepae I just fixed the reddit date field in commit acf00644ec8c5c79833f7ff656994d4a9507ff7b

phileepae commented 6 years ago

fixed via commit : d26b927 error catching for reddit & twitter added