gitlabhq/gitlabhq — pull request #4645 by knu (2013-07-26 09:54:47+00:00)
Title: Do not try to send a new ssh email when the key is not found.

When a user adds a key and then removes it immediately, a background job for the "SSH key was added" notification fails in retrieving the key record and the job will get stuck in the queue.