Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

proxy-only KeyError when file fails to download #111

@redshiftzero

Description

@redshiftzero

If there's an error during downloading a submission, the key filename will not be present in the response body (see relevant code here): instead the "error" key will be present.

Thus if a download error occurs, we'll see a KeyError: 'filename' from the SDK due to this line:

filepath = os.path.join(
                "/home/user/QubesIncoming/", self.proxy_vm_name, data["filename"]
            )

We should fix this once the exception handling in #110 is merged (related).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions