Skip to content

Commit 259cf3c

Browse files
authored
Merge pull request #24 from finmars-platform/PLAT-1874
Move get object from try block
2 parents 233e92a + fed7811 commit 259cf3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

poms/ui/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ def list_light(self, request, *args, **kwargs):
427427

428428
@action(detail=True, methods=["get"], url_path="ping")
429429
def ping(self, request, pk=None, realm_code=None, space_code=None):
430-
try:
431-
layout = self.get_object()
430+
layout = self.get_object()
432431

432+
try:
433433
return Response(
434434
{
435435
"id": layout.id,

0 commit comments

Comments
 (0)