Skip to content

Commit

Permalink
stability
Browse files Browse the repository at this point in the history
  • Loading branch information
nleach999 committed Apr 27, 2024
1 parent 9b20b45 commit 794eea1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ async def main():
continue

project_branches = project_branches_result.json()

if project_branches is None:
continue

for branch in project_branches:
last_scan_response = await cxone_client.get_project_last_scans(branch=branch, limit=1, project_ids=[project['id']])
Expand Down
4 changes: 3 additions & 1 deletion cxone_api/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ async def __download_files_to_directory_from_tree (cxone_client, scanid, tree, r
if fetched_file_resp.ok:
dest.write(fetched_file_resp.text)
else:
raise Exception(f"Could not load file {entry['fullPath']} from scan {scanid}")
pass
# it just won't download the file in this case...
# raise Exception(f"Could not load file {entry['fullPath']} from scan {scanid}")
return True


Expand Down

0 comments on commit 794eea1

Please sign in to comment.