aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'servo/models/common.py')
-rw-r--r--servo/models/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/servo/models/common.py b/servo/models/common.py
index 3c06d84..4338405 100644
--- a/servo/models/common.py
+++ b/servo/models/common.py
@@ -244,9 +244,10 @@ class GsxAccount(models.Model):
@classmethod
def get_default_account(cls):
+ from servo.lib.utils import empty
act_pk = Configuration.conf('gsx_account')
- if act_pk in ('', None,):
+ if empty(act_pk):
raise ValueError(_('Default GSX account not configured'))
return GsxAccount.objects.get(pk=act_pk)