Re: [Pyme-help] Export public keys with keyid
Status: Beta
Brought to you by:
belyi
From: Stefan N. <ste...@fr...> - 2005-10-25 12:22:49
|
Igor Belyi wrote: > The problem is that you forgot to 'rewind' the key back to the beginning > before reading from it. Oh yes. Damn! ;-) I should have recognized it earlier. Yes, now it works.(It was a bit late yearterday ;-) ) > Also note that c.op_export() does not return anything - all errors are > reported via exceptions. Therefore, the more appropriate way to catch an > error in your case is as follows: > > try: > c.op_export(keyid,0,key) > except errors.GPGMEError, ex: > print ex.getstring() Thanks. I was questioning myself everytime I read the gpgme-documentation and thought, I should test the result of the call. But now,... great. Actually, it is quite the logical way to do it like this! > Hope it helps, It helped a lot! > Igor cheers Stefan |