From ccd9d3320288af4372a2e0eedccb50283147c196 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 22 Dec 2010 20:27:39 -0500 Subject: [PATCH] handle AttributeError: ComponentAPI instance has no attribute 'get_registry' --- plugins/sfagids.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sfagids.py b/plugins/sfagids.py index 81c7b1e..5c2394b 100644 --- a/plugins/sfagids.py +++ b/plugins/sfagids.py @@ -30,9 +30,9 @@ def start(): logger.log("sfagid: plugin starting up ...") if not sfa: return - keyfile, certfile = get_keypair(None) - api = ComponentAPI(key_file=keyfile, cert_file=certfile) try: + keyfile, certfile = get_keypair(None) + api = ComponentAPI(key_file=keyfile, cert_file=certfile) api.get_node_key() except AttributeError: return -- 2.47.0