diff options
-rw-r--r-- | wqflask/wqflask/database.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/database.py b/wqflask/wqflask/database.py index 82a35013..3431e944 100644 --- a/wqflask/wqflask/database.py +++ b/wqflask/wqflask/database.py @@ -47,7 +47,7 @@ def database_connection(): """ host, user, passwd, db_name, port = parse_db_url(sql_uri()) connection = MySQLdb.connect( - db=db_name, user=user, passwd=passwd, host=host, port=port, + db=db_name, user=user, passwd=passwd or '', host=host, port=port, autocommit=False # Required for roll-backs ) try: |