diff --git a/doc/source/examples/directives_bd.rst b/doc/source/examples/directives_bd.rst index baf2b11..cf40d27 100644 --- a/doc/source/examples/directives_bd.rst +++ b/doc/source/examples/directives_bd.rst @@ -6,4 +6,4 @@ Business Dashboard :class: container-sbv .. service_card:: - :service_type: bd \ No newline at end of file + :service_type: bd diff --git a/otc_sphinx_directives/service_card.py b/otc_sphinx_directives/service_card.py index cd05c36..69686c2 100644 --- a/otc_sphinx_directives/service_card.py +++ b/otc_sphinx_directives/service_card.py @@ -102,7 +102,7 @@ def service_card_html(self, node): docs = sort_docs(service['documents']) for doc in docs: - + environment = doc.get('environment') if environment == "hidden": continue @@ -136,13 +136,13 @@ def service_card_html(self, node): Download PDF ''') - except Exception as e: + except Exception: print("Service " + node['service_type'] + " has not defined pdf_enabled!") - + data += '' self.body.append(data) - + raise nodes.SkipNode