e36 / subreddit_backup

A way to quickly back up reddit post data using PRAW.
2 stars 0 forks source link

Error handling #19

Open e36 opened 8 years ago

e36 commented 8 years ago

I ran the script for a while, and found that it will bomb out when inserting a record with null data. I need to change nullable=False to True in the models file so it won't blow up when a bit of data is empty. Be sure to think about if this should be done across the board, because we absolutely need data like thread IDs and whatnot.

There should probably be a report that's generated at the end of a script run, that shows skipped posts and comments.

e36 commented 8 years ago

I've changed the nullable bits on the less important pieces of data, but I still need to work out how to capture praw and sqlalchemy errors.