Skip to content

Commit

Permalink
Removed NotImplementedError exception that didn't add much and was a …
Browse files Browse the repository at this point in the history
…pain to test
  • Loading branch information
owenlamont committed Jan 9, 2025
1 parent 098e8e1 commit e1413fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/uv_secure/dependency_checker/dependency_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ async def check_dependencies(

if dependency_file_path.name == "uv.lock":
dependencies = await parse_uv_lock_file(dependency_file_path)
elif dependency_file_path.name == "requirements.txt":
else: # Assume dependency_file_path.name == "requirements.txt"
dependencies = await parse_requirements_txt_file(dependency_file_path)
else:
raise NotImplementedError(
f"Unsupported dependency file {dependency_file_path.name}"
)
console_outputs.append(
f"[bold cyan]Checking {dependency_file_path} dependencies for vulnerabilities"
"...[/]"
Expand Down

0 comments on commit e1413fe

Please sign in to comment.