> > Because there are exceptions, at the moment your solution solves the > problem, in a next iteration I'll probably solve it differently. > What exceptions ?
request.args(0, default=0, cast=int, otherwise=something) does exactly the same thing I described try: int(request.args(0)) except: something It's just a nicer shortcut to use --