Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Dec 19, 2024
1 parent 6299b9d commit e195160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions fusesoc/fusesoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ def get_backend(self, core, flags, backendargs=[]):
except RuntimeError as e:
raise RuntimeError("Setup failed : {}".format(str(e)))
except DependencyError as e:
raise RuntimeError(
"Failed to resolve dependencies. " + e.msg
)
raise RuntimeError("Failed to resolve dependencies. " + e.msg)

if os.path.exists(edam_file):
old_edam = yaml_fread(edam_file, self.config.resolve_env_vars_early)
Expand Down
5 changes: 4 additions & 1 deletion fusesoc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,10 @@ def args_to_config(args, config):
if hasattr(args, "resolve_env_vars_early") and args.resolve_env_vars_early:
setattr(config, "args_resolve_env_vars_early", args.resolve_env_vars_early)

if hasattr(args, "allow_additional_properties") and args.allow_additional_properties:
if (
hasattr(args, "allow_additional_properties")
and args.allow_additional_properties
):
setattr(
config, "args_allow_additional_properties", args.allow_additional_properties
)
Expand Down

0 comments on commit e195160

Please sign in to comment.