a guest Mar 19th, 2017 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- conn = pymysql.connect(host=dbEndpoint, user=dbUser, password=dbPass, db=dbSchema)
- with conn.cursor(pymysql.cursors.DictCursor) as cursor:
- except Exception as e:
- return str(e)
- return cursor.fetchone()
- MissingSchema: Invalid URL 'user': No schema supplied. Perhaps you meant http://user?
RAW Paste Data