From: Tony Mack Date: Wed, 6 Jul 2011 18:12:46 +0000 (-0400) Subject: catch eception if convert_publickey fails X-Git-Tag: sfa-1.0-28~8^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d1618de5ce6d251957494931d62ef19e21edabee;p=sfa.git catch eception if convert_publickey fails --- diff --git a/sfa/plc/sfaImport.py b/sfa/plc/sfaImport.py index cce4efe4..e9d0940e 100644 --- a/sfa/plc/sfaImport.py +++ b/sfa/plc/sfaImport.py @@ -135,7 +135,11 @@ class sfaImport: # to planetlab keys = self.shell.GetKeys(self.plc_auth, key_ids) key = keys[0]['key'] - pkey = convert_public_key(key) + pkey = None + try: + pkey = convert_public_key(key) + except: + self.logger.warn('unable to convert public key for %s' % hrn) if not pkey: pkey = Keypair(create=True) else: