Building 70 Projects ranging from beginner to advanced so anyone can β learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company π
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
check some potentially buggy sit
HERITAGE-XIONfcf234f88fd2
diff --git a/src/commands/verify.py b/src/commands/verify.pyindex a9d3b8b2..d101d7ea 100644--- a/src/commands/verify.py+++ b/src/commands/verify.py@@ -14,27 +14,26 @@ from rich.console import Consolefrom src.services.metadata_factory import MetadataFactoryfrom src.services.report_generator import ReportGenerator-console = Console()log = logging.getLogger("metadata-scrubber")def verify(original_path: Path = typer.Argument(- exists = True,- file_okay = True,- dir_okay = False,- readable = True,- resolve_path = True,- help = "Path to the original file (before scrubbing)",+ exists=True,+ file_okay=True,+ dir_okay=False,+ readable=True,+ resolve_path=True,+ help="Path to the original file (before scrubbing)",),processed_path: Path = typer.Argument(- exists = True,- file_okay = True,- dir_okay = False,- readable = True,- resolve_path = True,- help = "Path to the processed file (after scrubbing)",+ exists=True,+ file_okay=True,+ dir_okay=False,+ readable=True,+ resolve_path=True,+ help="Path to the processed file (after scrubbing)",),) -> None:"""@@ -59,10 +58,10 @@ def verify(# Generate comparison reportgenerator = ReportGenerator()report = generator.generate_report(- original_file = str(original_path),- processed_file = str(processed_path),- before_metadata = before_metadata,- after_metadata = after_metadata,+ original_file=str(original_path),+ processed_file=str(processed_path),+ before_metadata=before_metadata,+ after_metadata=after_metadata,)# Render the report@@ -72,10 +71,6 @@ def verify(console.print()generator.render_table(report)- # Exit with appropriate code on warnings- if report.status == VerificationStatus.WARNING:- raise typer.Exit(code=1)-except Exception as e:console.print(f"[red]Error during verification:[/red] {e}")if log.isEnabledFor(logging.DEBUG):