Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #
- import psycopg2
- try:
- db = psycopg2.connect("dbname='xxx' user='xxx' host='xxx:xxx' password='xxx'")
- except:
- print "FAIL"
- exit(1)
- exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement