remove print statements

This commit is contained in:
karthikmurakonda 2023-07-25 02:02:39 +05:30
parent e3d111e8d5
commit c408eb4d0f
1 changed files with 0 additions and 3 deletions

View File

@ -304,11 +304,9 @@ def verifyEmail(request):
return Response({'action': "Verify Email", 'message': "Opening Not Found"}, return Response({'action': "Verify Email", 'message': "Opening Not Found"},
status=status.HTTP_404_NOT_FOUND) status=status.HTTP_404_NOT_FOUND)
except ValueError as e: except ValueError as e:
print(traceback.format_exc())
return Response({'action': "Verify Email", 'message': str(e)}, return Response({'action': "Verify Email", 'message': str(e)},
status=status.HTTP_400_BAD_REQUEST) status=status.HTTP_400_BAD_REQUEST)
except: except:
print(traceback.format_exc())
logger.warning("Verify Email: " + str(sys.exc_info())) logger.warning("Verify Email: " + str(sys.exc_info()))
return Response({'action': "Verify Email", 'message': "Something went wrong"}, return Response({'action': "Verify Email", 'message': "Something went wrong"},
status=status.HTTP_400_BAD_REQUEST) status=status.HTTP_400_BAD_REQUEST)
@ -354,7 +352,6 @@ def addInternship(request):
if not verify_recaptcha(data[RECAPTCHA_VALUE]): if not verify_recaptcha(data[RECAPTCHA_VALUE]):
raise Exception("Recaptcha Failed") raise Exception("Recaptcha Failed")
print(internship)
internship.id = generateRandomString() internship.id = generateRandomString()
# Add a company details in the internship # Add a company details in the internship
internship.company_name = data[COMPANY_NAME] internship.company_name = data[COMPANY_NAME]