Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 47934

Re: Error: int() argument must be a string or a number, not 'NoneType'

$
0
0

Sorry about this trouble.

Please try this patch for iRedAdmin-Pro-MySQL-1.7.0:

diff --git a/libs/mysql/domain.py b/libs/mysql/domain.py
--- a/libs/mysql/domain.py
+++ b/libs/mysql/domain.py
@@ -135,8 +135,8 @@
             )
 
             if len(result) == 1:
-                result = list(result)
-                return (True, int(result[0].total))
+                total = result[0].total or 0
+                return (True, total)
             else:
                 return (False, 'INVALID_DOMAIN_QUOTA')
         except Exception, e:

Viewing all articles
Browse latest Browse all 47934

Trending Articles