Skip to content

Commit

Permalink
release 1.1.3 preventing crash on missing completed_ons
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed May 1, 2024
1 parent 44a20c8 commit 7036fbe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.3] - 2024-05-01

### Fixed

- Download crash if completed_ons information is missing (#35)

## [1.1.2] - 2024-05-01

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/image_creator/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.2"
__version__ = "1.1.3"
3 changes: 2 additions & 1 deletion src/image_creator/utils/aria2.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,8 @@ def get_feedback(self, only_for: list[str] | None = None):

completed_on = (
max(completed_ons)
if all(isinstance(item, datetime.datetime) for item in completed_ons)
if completed_ons
and all(isinstance(item, datetime.datetime) for item in completed_ons)
else datetime.datetime.now(tz=datetime.UTC)
)
if started_ons:
Expand Down

0 comments on commit 7036fbe

Please sign in to comment.