Skip to content

Commit

Permalink
Fixing PanDA client
Browse files Browse the repository at this point in the history
  • Loading branch information
Foorth committed May 24, 2023
1 parent d39d95e commit 3a45d91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/panda_client/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def client(request):
jeditaskid = data['taskid']
else:
jeditaskid = None
info['text'] ='Error! JeditaskID is none'

###Finish Task
if data['action'] == 'finishtask' and jeditaskid is not None:
Expand All @@ -53,7 +52,10 @@ def client(request):
else:
info['redirect'] = 'false'
else:
info['text'] = 'Operation error'
if jeditaskid is None:
info['text'] = 'Error! JeditaskID is none'
else:
info['text'] = 'Operation error'
else:
info['text'] = 'Request body is empty'
else:
Expand Down

0 comments on commit 3a45d91

Please sign in to comment.