Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
benfitzpatrick committed Jan 10, 2024
1 parent 0d5a14f commit 997323e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions metomi/rose/config_processors/fileinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _process(self, conf_tree, nodes, loc_dao, **kwargs):
source.scheme = scheme
break
self.loc_handlers_manager.parse(source, conf_tree)
except ValueError as exc:
except ValueError:
if source.is_optional:
sources.pop(source.name)
for name in source.used_by_names:
Expand All @@ -215,7 +215,7 @@ def _process(self, conf_tree, nodes, loc_dao, **kwargs):
else:
raise ConfigProcessError(
["file:" + source.used_by_names[0], "source"],
source.name, exc
source.name,
)
prev_source = loc_dao.select(source.name)
source.is_out_of_date = (
Expand Down
4 changes: 1 addition & 3 deletions metomi/rose/loc_handlers/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ def can_pull(self, loc):
scheme = urlparse(loc.name).scheme
if scheme in self.SCHEMES:
return True
# if scheme.startswith(self.GIT + "@"):
# return True
if self.URI_SEPARATOR not in loc.name:
return False
remote = self._parse_name(loc)[0]
Expand Down Expand Up @@ -126,7 +124,7 @@ def parse(self, loc, conf_tree):

if typetext.strip() == "tree":
loc.loc_type = loc.TYPE_TREE
else: # if outtext == "blob":
else:
loc.loc_type = loc.TYPE_BLOB
loc.real_name = f"remote:{remote} ref:{ref} commit:{commithash} path:{path}"
loc.key = commithash
Expand Down

0 comments on commit 997323e

Please sign in to comment.