[minor] [fix] [demo]

This commit is contained in:
Anand Doshi 2013-10-03 13:19:51 +05:30
parent f1b6f67a98
commit fd3addab7e

View File

@ -40,7 +40,9 @@ def make(reset=False, simulate=True):
if reset:
setup()
else:
webnotes.conn.close()
if webnotes.conn:
webnotes.conn.close()
webnotes.connect(db_name=webnotes.conf.demo_db_name)
if simulate: