Advertisement
Guest User

Untitled

a guest
Apr 12th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/python
  2. #
  3. import psycopg2
  4. try:
  5. db = psycopg2.connect("dbname='xxx' user='xxx' host='xxx:xxx' password='xxx'")
  6. except:
  7. print "FAIL"
  8. exit(1)
  9.  
  10. exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement