Skip to content

Commit

Permalink
GPG: log reason for failure to retrieve key on registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Folkinshteyn committed Mar 31, 2011
1 parent 97b98a0 commit 6fd555c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GPG/plugin.py
Expand Up @@ -198,7 +198,10 @@ def register(self, irc, msg, args, nick, keyid, keyserver):
else:
raise
except:
irc.error("Could not retrieve your key from keyserver.")
irc.error("Could not retrieve your key from keyserver. "
"Either it isn't there, or it is invalid.")
self.log.info("GPG register: failed to retrieve key %s from keyservers %s. Details: %s" % \
(keyid, keyservers, result.stderr,))
return
challenge = hashlib.sha256(os.urandom(128)).hexdigest()
request = {msg.prefix: {'keyid':keyid,
Expand Down

0 comments on commit 6fd555c

Please sign in to comment.