From 9eb34dc91e967488ef25d363cf5559c080fe7c28 Mon Sep 17 00:00:00 2001 From: Tran Khai Date: Sun, 16 Jun 2024 16:19:25 +0700 Subject: [PATCH] fix: Fix current release --- locker_server/api/v1_0/releases/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locker_server/api/v1_0/releases/views.py b/locker_server/api/v1_0/releases/views.py index e8d83eb..9b2c182 100644 --- a/locker_server/api/v1_0/releases/views.py +++ b/locker_server/api/v1_0/releases/views.py @@ -80,7 +80,7 @@ def current(self, request, *args, **kwargs): data = { "version": version, "environment": environment, - "checksum": latest_release.get_checksum(), + "checksum": latest_release.get_checksum() if latest_release else {}, "platform": platform } return Response(status=status.HTTP_200_OK, data=data)