|
|
@ -33,10 +33,10 @@ def feed(): |
|
|
|
except KeyboardInterrupt: |
|
|
|
except KeyboardInterrupt: |
|
|
|
raise |
|
|
|
raise |
|
|
|
except PRAWException as e: |
|
|
|
except PRAWException as e: |
|
|
|
logging.error('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
logging.critical('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
except PrawcoreException as e: |
|
|
|
except PrawcoreException as e: |
|
|
|
logging.error('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
logging.critical('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
def comment(i): |
|
|
|
def comment(i): |
|
|
@ -84,10 +84,10 @@ def story(ref): |
|
|
|
except KeyboardInterrupt: |
|
|
|
except KeyboardInterrupt: |
|
|
|
raise |
|
|
|
raise |
|
|
|
except PRAWException as e: |
|
|
|
except PRAWException as e: |
|
|
|
logging.error('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
logging.critical('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
return False |
|
|
|
return False |
|
|
|
except PrawcoreException as e: |
|
|
|
except PrawcoreException as e: |
|
|
|
logging.error('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
logging.critical('Problem hitting reddit API: {}'.format(str(e))) |
|
|
|
return False |
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
# scratchpad so I can quickly develop the parser |
|
|
|
# scratchpad so I can quickly develop the parser |
|
|
|