Skip to content

Commit

Permalink
Fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianGode committed Dec 9, 2024
1 parent 99aad2e commit 694d388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/source/examples/directives_bd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Business Dashboard
:class: container-sbv

.. service_card::
:service_type: bd
:service_type: bd
8 changes: 4 additions & 4 deletions otc_sphinx_directives/service_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -136,13 +136,13 @@ def service_card_html(self, node):
<span style="font-weight: normal;">Download PDF</span>
</scale-button>
''')
except Exception as e:
except Exception:
print("Service " + node['service_type'] + " has not defined pdf_enabled!")

data += '</div>'

self.body.append(data)

raise nodes.SkipNode


Expand Down

0 comments on commit 694d388

Please sign in to comment.