Skip to content

Commit

Permalink
Fix ConsoleWriter error. Changed returning type in advisory.extract_h…
Browse files Browse the repository at this point in the history
…ashes function
  • Loading branch information
matteogreek authored and copernico committed May 29, 2023
1 parent 2e40847 commit 1fe0a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prospector/cli/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __enter__(self):
return self

def __exit__(self, exc_type, exc_val, exc_tb):
if exc_val is not None and exc_val.code != 0:
if exc_val is not None:
self.status = MessageStatus.ERROR
print(
f"{ConsoleWriter.indent}[{self.status.value}{self.status.name}{Style.RESET_ALL}]",
Expand Down
2 changes: 1 addition & 1 deletion prospector/datamodel/advisory.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def extract_hashes(self, reference: str, filter: bool = False) -> str | None:
# )
return None
# validators.url(reference)
return None
return ""

def parse_advisory_2(self, details, metadata):
self.affected_products = [details["affected"][0]["product"]]
Expand Down

0 comments on commit 1fe0a45

Please sign in to comment.