request.args.get проверьте, если определено
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"
Cruel Cardinal
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"