commit | 9dda0fb63be34522bdb0be13355209fbf99fa470 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Thu Oct 03 18:13:40 2013 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Thu Oct 03 18:13:40 2013 +0530 |
tree | ecb417282474117e5c28ce0056191d37dd84e508 | |
parent | 6856d74a1bc463e682ecc178f213d82acb0e7ac6 [diff] | |
parent | fd3addab7e418f9a753c26405fad364850db9356 [diff] |
Merge branch 'wsgi' of github.com:webnotes/erpnext into wsgi
diff --git a/utilities/demo/make_demo.py b/utilities/demo/make_demo.py index 4f30df6..692ae31 100644 --- a/utilities/demo/make_demo.py +++ b/utilities/demo/make_demo.py
@@ -40,7 +40,9 @@ if reset: setup() else: - webnotes.conn.close() + if webnotes.conn: + webnotes.conn.close() + webnotes.connect(db_name=webnotes.conf.demo_db_name) if simulate: