Skip to content

Commit 611c72b

Browse files
committed
Release 6.0: Gracefully handle invalid dates
1 parent 1ab96d5 commit 611c72b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ to `semantic versioning`_.
1111
.. _Keep a Changelog: http://keepachangelog.com/
1212
.. _semantic versioning: http://semver.org/
1313

14+
`Release 6.0`_ (2018-08-03)
15+
---------------------------
16+
17+
This is a bug fix release that changes the behavior of the program, and because
18+
`rotate-backups` involves the deletion of important files I'm considering this
19+
a significant change in behavior that deserves a major version bump...
20+
21+
It was reported in issue `#12`_ that filenames that match the filename pattern
22+
but contain digits with invalid values for the year/month/day/etc fields would
23+
cause a ``ValueError`` exception to be raised.
24+
25+
Starting from this release these filenames are ignored instead, although a
26+
warning is logged to make sure the operator understands what's going on.
27+
28+
.. _Release 6.0: https://github.com/xolox/python-rotate-backups/compare/5.3...6.0
29+
.. _#12: https://github.com/xolox/python-rotate-backups/issues/12
30+
1431
`Release 5.3`_ (2018-08-03)
1532
---------------------------
1633

rotate_backups/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
from verboselogs import VerboseLogger
4444

4545
# Semi-standard module versioning.
46-
__version__ = '5.3'
46+
__version__ = '6.0'
4747

4848
# Initialize a logger for this module.
4949
logger = VerboseLogger(__name__)

0 commit comments

Comments
 (0)