logging-ext2 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
logging_ext2/__about__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Xiang Wang <ramwin@qq.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.2.1"
4
+ __version__ = "0.2.2"
logging_ext2/handlers.py CHANGED
@@ -67,8 +67,11 @@ class TimedRotatingFileHandler(Handler):
67
67
  for to_gzip_path in paths[self.flat_keep:self.max_keep]:
68
68
  # here use the system gzip command to ignore exceptions like
69
69
  # permission denied or file not found
70
- if not to_gzip_path.stat().st_size:
71
- to_gzip_path.unlink(missing_ok=True)
70
+ try:
71
+ if not to_gzip_path.stat().st_size:
72
+ to_gzip_path.unlink(missing_ok=True)
73
+ continue
74
+ except FileNotFoundError:
72
75
  continue
73
76
  if to_gzip_path.suffix == ".gz":
74
77
  continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: logging-ext2
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: extend python logging library
5
5
  Project-URL: Documentation, https://github.com/ramwin/logging-ext#readme
6
6
  Project-URL: Issues, https://github.com/ramwin/logging-ext/issues
@@ -0,0 +1,8 @@
1
+ logging_ext2/__about__.py,sha256=CwnIpwy4dY5_pEu6b684l8Sx6zWLEmy0PSCcBVT27Zg,121
2
+ logging_ext2/__init__.py,sha256=BA6rgdmh3z2v01cbHU1FRMsBIRV5vQjh2w9FzG2F2GY,99
3
+ logging_ext2/handlers.py,sha256=_kD4jtd9otv5Me4Zx099Glh2wZoq1gJTGt7HiQAE7y0,2967
4
+ logging_ext2/types.py,sha256=cLjODjTgxrZEXUZzOkrFm3s6bUG3Itc_fS7KJ-MSWC8,237
5
+ logging_ext2-0.2.2.dist-info/METADATA,sha256=T6ZjAFvVK4N8PnNACvYnAIm9RabCziS4ZBIj7IEmUwc,1429
6
+ logging_ext2-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ logging_ext2-0.2.2.dist-info/licenses/LICENSE,sha256=RckqF9bdq7oO9RrL4iZYuXNhkIcXexbXNF2ToiaJymU,1067
8
+ logging_ext2-0.2.2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- logging_ext2/__about__.py,sha256=mUu4qhx9EBxDtNiujiI_vqVwo8Jx3o3ULeBVbvx8RkM,121
2
- logging_ext2/__init__.py,sha256=BA6rgdmh3z2v01cbHU1FRMsBIRV5vQjh2w9FzG2F2GY,99
3
- logging_ext2/handlers.py,sha256=UCPKGYrOAFT5Eztv4UJa1ZMlbecjn4nqNg02jxbJXlA,2875
4
- logging_ext2/types.py,sha256=cLjODjTgxrZEXUZzOkrFm3s6bUG3Itc_fS7KJ-MSWC8,237
5
- logging_ext2-0.2.1.dist-info/METADATA,sha256=TIMXq6mEkBHRUvXlE7kek02kcv7YcYxWgubJUQ2oLKs,1429
6
- logging_ext2-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- logging_ext2-0.2.1.dist-info/licenses/LICENSE,sha256=RckqF9bdq7oO9RrL4iZYuXNhkIcXexbXNF2ToiaJymU,1067
8
- logging_ext2-0.2.1.dist-info/RECORD,,