Permalink
Browse files

rescue if Integer is set to undefined

  • Loading branch information...
1 parent 22914ca commit c770cb157ab8aec153d2145457c3492f82911a51 @jsmestad jsmestad committed Jan 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/janky/hubot.rb
View
2 lib/janky/hubot.rb
@@ -35,7 +35,7 @@ class Hubot < Sinatra::Base
repo = find_repo(repo_name)
branch = repo.branch_for(branch_name)
build = branch.current_build
- room_id = params["room_id"] && Integer(params["room_id"])
+ room_id = params["room_id"] && Integer(params["room_id"]) rescue nil
if build
build.rerun(room_id)

0 comments on commit c770cb1

Please sign in to comment.