diff --git a/apps/terminal/serializers.py b/apps/terminal/serializers.py index 600e279e7..78991b9b9 100644 --- a/apps/terminal/serializers.py +++ b/apps/terminal/serializers.py @@ -23,7 +23,10 @@ class TerminalSerializer(serializers.ModelSerializer): @staticmethod def get_is_alive(obj): - status = obj.status_set.latest() + try: + status = obj.status_set.latest() + except Status.DoesNotExist: + status = None if not status: return False