Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. try:
  2.     cnn = psycopg2.connect(host = 'localhost', dbname = cnn_data['baza'], user = cnn_data['login'], password = cnn_data['password'])
  3. except Exception:
  4.     print_status('ERROR')
  5. else:
  6.     print_status('OK')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement