daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Jun 18th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     def connect_graph(db_username, db_password):
  2.         """
  3.        Retry the graph connection until it goes through
  4.        :param db_username:
  5.        :param db_password:
  6.        """
  7.         try:
  8.             return GraphDatabase.driver(connection_url,
  9.                                  auth=basic_auth(
  10.                                      db_username,
  11.                                      db_password
  12.                                     )
  13.                                  )
  14.         except ConnectionResetError:
  15.             time.sleep(1)
  16.             return connect_graph(db_username, db_password)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top