[fixes] setup control

This commit is contained in:
Nabin Hait
2013-06-28 15:00:24 +05:30
parent 1a8054994e
commit 869913c96b
2 changed files with 4 additions and 3 deletions

View File

@@ -271,7 +271,7 @@ def create_territories():
country = webnotes.conn.get_value("Control Panel", None, "country")
root_territory = get_root_of("Territory")
for name in (country, "Rest Of The World"):
if not webnotes.conn.exists("Territory", name):
if name and not webnotes.conn.exists("Territory", name):
webnotes.bean({
"doctype": "Territory",
"territory_name": name,