Skip to content

Commit

Permalink
🐛 Handle missing gradients extras
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Dec 21, 2023
1 parent e9b6f43 commit bf9e38f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cpac/utils/bare_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@
default=False,
)

_PARSERS = {"gradients": gradients_parser(), "tsconcat": tsconcat_parser}
_PARSERS = {
"gradients": gradients_parser()
if gradients_parser is not None
else gradients_parser,
"tsconcat": tsconcat_parser,
}
"""CLI parsers for wrapped packages"""
WRAPPED = {}
"""memoization of wrapped packages"""
Expand Down

0 comments on commit bf9e38f

Please sign in to comment.