From 1d7c8db3981164015afcb15e0a5af7429de3d4ae Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 21 Jul 2016 17:20:44 +0530 Subject: [PATCH] [fix] frappe/erpnext#5790 --- frappe/limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/limits.py b/frappe/limits.py index f48177ffcf..5007289335 100755 --- a/frappe/limits.py +++ b/frappe/limits.py @@ -88,7 +88,7 @@ def get_usage_info(): # no limits! return - limits.space = limits.space * 1024.0 # to MB + limits.space = (limits.space or 0) * 1024.0 # to MB if not limits.space_usage: # hack! to show some progress limits.space_usage = {