Fixing error handling for the inbox command
This commit is contained in:
@@ -192,6 +192,7 @@ def main():
|
||||
reddit = praw.Reddit(user_agent=user_agent,
|
||||
decode_html_entities=False,
|
||||
disable_update_check=True,
|
||||
timeout=10, # 10 second request timeout
|
||||
handler=RequestHeaderRateLimiter())
|
||||
|
||||
# Dial the request cache up from 30 seconds to 5 minutes
|
||||
@@ -247,4 +248,5 @@ def main():
|
||||
if 'reddit' in locals():
|
||||
reddit.handler.http.close()
|
||||
|
||||
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user