From dead238496b112ff5b22bc7f68b978545433f1e1 Mon Sep 17 00:00:00 2001
From: Bastian Bloessl <mail@bastibl.net>
Date: Fri, 22 Feb 2019 11:16:36 +0000
Subject: modtool: converter, make sure block_candidates are assigned

---
 gr-utils/python/modtool/cli/update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-utils/python')

diff --git a/gr-utils/python/modtool/cli/update.py b/gr-utils/python/modtool/cli/update.py
index f5da9077ff..509e9daa20 100644
--- a/gr-utils/python/modtool/cli/update.py
+++ b/gr-utils/python/modtool/cli/update.py
@@ -47,8 +47,8 @@ def get_blockname(self):
     """ Returns the blockname for block to be updated """
     if self.info['complete']:
         return
+    block_candidates = get_xml_candidates()
     if self.info['blockname'] is None:
-        block_candidates = get_xml_candidates()
         with SequenceCompleter(block_candidates):
             self.info['blockname'] = cli_input('Which block do you wish to update? : ')
     if not self.info['blockname'] or self.info['blockname'].isspace():
-- 
cgit v1.2.3