From 1cfab4e21d67478a4ae8ae67466069a94dbb23ff Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 11 Apr 2013 09:36:20 +0530 Subject: [PATCH] [patch] [fix] --- patches/april_2013/p05_fixes_in_reverse_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/april_2013/p05_fixes_in_reverse_modules.py b/patches/april_2013/p05_fixes_in_reverse_modules.py index 8f5b2f773e..41e2e5ef2f 100644 --- a/patches/april_2013/p05_fixes_in_reverse_modules.py +++ b/patches/april_2013/p05_fixes_in_reverse_modules.py @@ -4,7 +4,7 @@ import webnotes.utils def execute(): modules = webnotes.get_config().modules - ml = json.loads(webnotes.conn.get_global("hidden_modules")) + ml = json.loads(webnotes.conn.get_global("hidden_modules") or "[]") if len(ml) == len(modules.keys()): webnotes.conn.set_global("hidden_modules", json.dumps([])) \ No newline at end of file