Skip to content

The error file is created even when gallery-dl successfully downloads all files #8523

@lyubomyr-shaydariv

Description

@lyubomyr-shaydariv

Steps to reproduce

For gallery-dl version as of 1.30.10:

gallery-dl --error-file errors '<ANY_WORKING_URL>' \
    || echo 'fail'

Actual results

If the gallery-dl command from the above steps succeeds, the right operand of the shell operator || is not executed as expected, but the file errors is created empty.

Expected results

It would be nice to postpone creating the errors file and writing errors to it until the first error occurs.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions