You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2022/05/24 13:53:53 UTC

[airavata-django-portal] 01/02: Fix "not all arguments converted during string formatting" bug

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 0a63e136686988896bc913349612a53d75f98819
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon May 23 17:32:35 2022 -0400

    Fix "not all arguments converted during string formatting" bug
---
 django_airavata/apps/api/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index 158e46d1..2033c749 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -261,7 +261,7 @@ class ExperimentViewSet(mixins.CreateModelMixin,
                 request.authz_token, experiment_id, self.gateway_id)
             return Response({'success': True})
         except Exception as e:
-            log.error("Cancel action has thrown the following error: ", e)
+            log.exception("Cancel action has thrown the following error")
             raise e
 
     @action(methods=['post'], detail=True)
@@ -273,7 +273,7 @@ class ExperimentViewSet(mixins.CreateModelMixin,
                 request.authz_token, experiment_id, request.data["outputNames"])
             return Response({'success': True})
         except Exception as e:
-            log.error("fetchIntermediateOutputs failed with the following error: ", e)
+            log.exception("fetchIntermediateOutputs failed with the following error")
             raise e
 
     def _update_workspace_preferences(self, project_id,