Skip to content

Commit 2bc8817

Browse files
authored
Merge pull request #235 from sbs2001/remove_prints
Remove print statements
2 parents a15c726 + 0205f14 commit 2bc8817

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

vulnerabilities/importers/github.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def fetch(self) -> Mapping[str, List[Mapping]]:
110110

111111
query_json = {"query": query % (ecosystem, end_cursor_exp)}
112112
resp = requests.post(self.config.endpoint, headers=headers, json=query_json).json()
113-
print(resp)
114113
if resp.get("message") == "Bad credentials":
115114
raise GitHubTokenError("Invalid GitHub token")
116115

vulnerabilities/importers/npm.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,15 @@ def updated_advisories(self) -> Set[Advisory]:
5757
processed_data = self.process_file(f)
5858
if processed_data:
5959
advisories.extend(processed_data)
60-
print(advisories)
6160
return self.batch_advisories(advisories)
6261

6362
@property
6463
def versions(self): # quick hack to make it patchable
6564
return self._versions
6665

6766
def process_file(self, file) -> List[Advisory]:
68-
print(file)
6967
with open(file) as f:
7068
record = json.load(f)
71-
print(record)
7269
advisories = []
7370
package_name = record['module_name']
7471
all_versions = self.versions.get(package_name)

0 commit comments

Comments
 (0)