flask check type of parameter code example
Example: request.args.get check if defined
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"