Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[create] Option to set branch names #1961

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
use raise from
  • Loading branch information
fabianegli committed Oct 21, 2022
commit d4e8705d06090fe2d42ae6dfb77055f2bbb62d94
4 changes: 2 additions & 2 deletions nf_core/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def create_param_dict(self, name, description, author, version, template_yaml_pa
template_yaml = yaml.safe_load(f)
else:
template_yaml = {}
except FileNotFoundError:
raise UserWarning(f"Template YAML file '{template_yaml_path}' not found.")
except FileNotFoundError as exc:
raise UserWarning(f"Template YAML file '{template_yaml_path}' not found.") from exc

param_dict = {}
# Get the necessary parameters either from the template or command line arguments
Expand Down