Skip to content

Commit

Permalink
docs: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukozturk committed Jan 2, 2023
1 parent 5539856 commit f431a13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hardeneks/harden.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from importlib import import_module

from hardeneks import console


def harden(resources, config, _type):
config = config[_type]
Expand All @@ -12,8 +10,8 @@ def harden(resources, config, _type):
try:
func = getattr(module, rule)
except AttributeError as exc:
console.print(f"[bold][red]{exc}")
print(f"[bold][red]{exc}")
try:
func(resources)
except Exception as exc:
console.print(f"[bold][red]{exc}")
print(f"[bold][red]{exc}")

0 comments on commit f431a13

Please sign in to comment.