Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metaflow/cli_components/run_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def resume(
# be non-integers to avoid any clashes. This condition ensures this.
try:
int(run_id)
except:
except (TypeError, ValueError):
pass
else:
raise CommandException("run-id %s cannot be an integer" % run_id)
Expand Down
2 changes: 1 addition & 1 deletion metaflow/cli_components/step_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def step(
func = None
try:
func = getattr(ctx.obj.flow, step_name)
except:
except AttributeError:
raise CommandException("Step *%s* doesn't exist." % step_name)
if not func.is_step:
raise CommandException("Function *%s* is not a step." % step_name)
Expand Down