{"action":"opened","issue":{"url":"https://api.github.com/repos/nviennot/nobrainer/issues/160","labels_url":"https://api.github.com/repos/nviennot/nobrainer/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/nviennot/nobrainer/issues/160/comments","events_url":"https://api.github.com/repos/nviennot/nobrainer/issues/160/events","html_url":"https://github.com/nviennot/nobrainer/issues/160","id":104494514,"number":160,"title":"Lock#try_lock should not raise exception?","user":{"login":"niv","id":11712,"avatar_url":"https://avatars.githubusercontent.com/u/11712?v=3","gravatar_id":"","url":"https://api.github.com/users/niv","html_url":"https://github.com/niv","followers_url":"https://api.github.com/users/niv/followers","following_url":"https://api.github.com/users/niv/following{/other_user}","gists_url":"https://api.github.com/users/niv/gists{/gist_id}","starred_url":"https://api.github.com/users/niv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niv/subscriptions","organizations_url":"https://api.github.com/users/niv/orgs","repos_url":"https://api.github.com/users/niv/repos","events_url":"https://api.github.com/users/niv/events{/privacy}","received_events_url":"https://api.github.com/users/niv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T14:33:04Z","updated_at":"2015-09-02T14:33:04Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having some doubts about this line:\r\n\r\nhttps://github.com/nviennot/nobrainer/blob/9815a2da3f700cdc310970b7d66ce8cf83bd8390/lib/no_brainer/lock.rb#L59\r\n\r\nIt throws an exception when calling try_lock from the same lock twice. Shouldn't it just return false/true depending on if the current caller already holds the lock?\r\n\r\nCheers"}}