Issue
Have written GCP Cloud Function in Python 3.7. While executing, sys.exit()
I'm getting 'A server error occurred ...'. I need to exit out of the function and have written following code.
import sys
if str(strEnabled) == 'True':
printOperation = "Operation: Enabling of user"
else:
sys.exit() #Exit From the Program
Please suggest, what I'm missing here.
Solution
Use return
instead of sys.exit
Copied from bigbounty's comment
Answered By - wjandrea
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.