From fd3addab7e418f9a753c26405fad364850db9356 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 3 Oct 2013 13:19:51 +0530 Subject: [PATCH] [minor] [fix] [demo] --- utilities/demo/make_demo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utilities/demo/make_demo.py b/utilities/demo/make_demo.py index 4f30df62be..692ae31110 100644 --- a/utilities/demo/make_demo.py +++ b/utilities/demo/make_demo.py @@ -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: