splitlog 4.1.4__tar.gz → 4.1.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: splitlog
3
- Version: 4.1.4
3
+ Version: 4.1.5
4
4
  Summary: Utility to split aggregated logs from Apache Hadoop Yarn applications into a folder hierarchy
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -26,7 +26,7 @@ dependencies = [
26
26
  "python-dateutil (>=2.9.0,<3.0.0)",
27
27
  "pytz (>=2025.2)",
28
28
  ]
29
- version = "4.1.4"
29
+ version = "4.1.5"
30
30
 
31
31
 
32
32
  [project.urls]
@@ -220,7 +220,12 @@ class LinuxLocalFilesystemOutputFolder(OutputFolder):
220
220
 
221
221
  def create(self, path: Path) -> BinWriter:
222
222
  real_path = self._ensure_path_under_root(path)
223
- return FileWrapper(open(real_path, "xb", opener=self._opener))
223
+ f = open(real_path, "xb", opener=self._opener)
224
+ try:
225
+ return FileWrapper(f)
226
+ except Exception:
227
+ f.close()
228
+ raise
224
229
 
225
230
  def _ensure_path_under_root(self, path: Path) -> Path:
226
231
  if path.is_absolute():
File without changes
File without changes
File without changes
File without changes