Skip to content

Commit 794eea1

Browse files
committed
stability
1 parent 9b20b45 commit 794eea1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

api_example.py

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ async def main():
3232
continue
3333

3434
project_branches = project_branches_result.json()
35+
36+
if project_branches is None:
37+
continue
3538

3639
for branch in project_branches:
3740
last_scan_response = await cxone_client.get_project_last_scans(branch=branch, limit=1, project_ids=[project['id']])

cxone_api/repo.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ async def __download_files_to_directory_from_tree (cxone_client, scanid, tree, r
5050
if fetched_file_resp.ok:
5151
dest.write(fetched_file_resp.text)
5252
else:
53-
raise Exception(f"Could not load file {entry['fullPath']} from scan {scanid}")
53+
pass
54+
# it just won't download the file in this case...
55+
# raise Exception(f"Could not load file {entry['fullPath']} from scan {scanid}")
5456
return True
5557

5658

0 commit comments

Comments
 (0)