Ignore vim swap files

pull/47/merge
Naypam 9 years ago
parent 744ee2f13e
commit c4d30963bb

1
.gitignore vendored

@ -9,3 +9,4 @@ pip-selfcheck.json
shreddit.conf
praw.ini
__pycache__/
.*.swp

@ -0,0 +1,17 @@
#!/usr/bin/env python
'''
Simple script to check if your oauth is working.
'''
import praw
import sys
r = praw.Reddit('Shreddit oauth test')
try:
r.refresh_access_information()
if r.is_oauth_session():
sys.exit(0)
else:
sys.exit(2)
except:
sys.exit(1)
Loading…
Cancel
Save