Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Jun 5, 2024
1 parent ad3da46 commit 3a3ecbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xontrib/pipeliner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _pl(args, stdin, stdout):
, file=sys.stderr)
return

if args[0] in presets:
if args[0] in presets and callable(args[0]):
fn = presets[args[0]]
else:
fn = eval('lambda line, num, args:'+args[0], __xonsh__.ctx)
Expand Down

0 comments on commit 3a3ecbc

Please sign in to comment.