Skip to content

Commit fe60675

Browse files
author
strongHunter
committed
fix typosquatting: format
1 parent ff32164 commit fe60675

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guarddog/analyzer/metadata/npm/typosquatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _get_top_packages_network(self, url: str) -> list[dict] | None:
7575

7676
return result
7777
except json.JSONDecodeError:
78-
log.error(f"Couldn`t convert to json: \"{response.text}\"")
78+
log.error(f'Couldn`t convert to json: "{response.text}"')
7979
return None
8080
except requests.exceptions.RequestException as e:
8181
log.error(f"Network error: {e}")

guarddog/analyzer/metadata/pypi/typosquatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _get_top_packages_network(self, url: str) -> list[dict] | None:
9595

9696
return self.extract_information(result)
9797
except json.JSONDecodeError:
98-
log.error(f"Couldn`t convert to json: \"{response.text}\"")
98+
log.error(f'Couldn`t convert to json: "{response.text}"')
9999
return None
100100
except requests.exceptions.RequestException as e:
101101
log.error(f"Network error: {e}")

0 commit comments

Comments
 (0)