added precheck warning
This commit is contained in:
parent
4f968c0a88
commit
12407bd84e
|
@ -52,6 +52,7 @@ def precheck(required_data=None):
|
||||||
|
|
||||||
return view_func(request, *args, **kwargs)
|
return view_func(request, *args, **kwargs)
|
||||||
except:
|
except:
|
||||||
|
logger.warning("Precheck: " + str(sys.exc_info()))
|
||||||
return Response({'action': "Pre check", 'message': "Something went wrong"},
|
return Response({'action': "Pre check", 'message': "Something went wrong"},
|
||||||
status=status.HTTP_400_BAD_REQUEST)
|
status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue