Do not try to calculate current quota state if it's not defined for the user.

see #194
This commit is contained in:
Antoine Nguyen
2012-01-23 10:52:37 +01:00
parent 82c9018a3c
commit 8d6c2dcacb
+1 -1
View File
@@ -327,7 +327,7 @@ class IMAPconnector(object):
return
status, data = self.m.getquotaroot(self._encodefolder(folder))
if status == "OK":
if status == "OK" and data[1][0] is not None:
quotadef = data[1][0]
m = re.match("[^\s]+ \(STORAGE (\d+) (\d+)\)", quotadef)
if not m: