Fixed a request handeling bug in flask

Not really a bug, but a tool that reports request failures too often.