[bot] Replace dumb try-excepts.

Related to issue #288.