Skip to content

Commit 943d0c7

Browse files
raise errors on install failures to avoid placing import statement
1 parent 91077a9 commit 943d0c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guardrails/hub/validator_package_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,11 @@ def install_hub_module(
296296
f"stdout: {(stdout or '').strip()}"
297297
)
298298
)
299+
raise
299300
except Exception as e:
300301
logger.error(
301302
"An unexpected exception occurred while "
302303
f"installing {validator_id}: ",
303304
e,
304305
)
306+
raise

0 commit comments

Comments
 (0)