diff options
author | Vasil Velichkov <vvvelichkov@gmail.com> | 2020-01-23 01:02:44 +0200 |
---|---|---|
committer | devnulling <devnulling@users.noreply.github.com> | 2020-01-22 20:44:19 -0800 |
commit | 076d264d2443efbdf2a1f058da701309af9dc304 (patch) | |
tree | 622b6347c357eba1db4222cae66984b1c5658f58 /grc/gui/PropsDialog.py | |
parent | f72099fb4da5aae1293962ee6f6be38ba8993683 (diff) |
grc: Display documentation for blocks without category key
Check that the category list is not empty before accessing its first
element. Some OOT modules does not have category key and documentation
tab is left empty because of this missing check.
Traceback (most recent call last):
File "/usr/local/lib64/python3.7/site-packages/gnuradio/grc/gui/PropsDialog.py", line 210, in update_gui
self._update_docs_page()
File "/usr/local/lib64/python3.7/site-packages/gnuradio/grc/gui/PropsDialog.py", line 220, in _update_docs_page
if self._block.category[0] == "Core":
IndexError: list index out of range
Diffstat (limited to 'grc/gui/PropsDialog.py')
-rw-r--r-- | grc/gui/PropsDialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py index 6bf2745a4e..1e0a10b86b 100644 --- a/grc/gui/PropsDialog.py +++ b/grc/gui/PropsDialog.py @@ -217,7 +217,7 @@ class PropsDialog(Gtk.Dialog): pos = buf.get_end_iter() # Add link to wiki page for this block, at the top, as long as it's not an OOT block - if self._block.category[0] == "Core": + if self._block.category and self._block.category[0] == "Core": note = "Wiki Page for this Block: " prefix = self._config.wiki_block_docs_url_prefix suffix = self._block.label.replace(" ", "_") |