summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Reporting/Storage/DjangoORM.py')
-rw-r--r--src/lib/Bcfg2/Reporting/Storage/DjangoORM.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py b/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
index 88c3172b2..6c0f15d2a 100644
--- a/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
+++ b/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
@@ -261,6 +261,9 @@ class DjangoORM(StorageBase):
"""Fetch extra entries for a client"""
try:
c_inst = Client.objects.get(name=client)
+ if not c_inst.current_interaction:
+ # the rare case where a client has no interations
+ return None
return [(ent.entry_type, ent.name) for ent in
c_inst.current_interaction.extra()]
except ObjectDoesNotExist: