Skip to content

[quality-keeper] HIGH code-quality findings #18

Description

@sophiecarreras

Summary

HIGH-severity code-quality findings (runtime-breaking bugs) detected in this repo.

Affected files

upload_file has no error handling — boto3 failures surface as unhandled exceptions (sample.py:192); CLI arg dispatch uses lexicographic string comparison not numeric (sample.py:227,293)

Why it matters

These cause incorrect results or crashes, undermining the repo as a reference implementation.

Suggested fix

Per item: add error handling, input validation, and fix the specific issues listed above.

Acceptance criteria

  • Each item fixed and re-scanned clean by /health-check code-review

Filed by quality-keeper (2026-06-19). Migrated from backblaze-labs/demand-side-ai#376.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B2 ExampleSampleApps team (quality-keeper routing): discoverability, stale-doc, sample-app code findings

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions