rats-apps 0.11.1.dev20250624201650__py3-none-any.whl → 0.11.2.dev20250624203246__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.
rats/logs/_showwarning.py CHANGED
@@ -38,13 +38,17 @@ def showwarning(
38
38
 
39
39
  formatted_message = warnings.formatwarning(message, category, filename, lineno, line)
40
40
 
41
- for _module_name, module in sys.modules.items():
42
- module_path = getattr(module, "__file__", None)
43
- if module_path and Path(filename).is_file() and Path(module_path).samefile(filename):
44
- module_name = _module_name
45
- break
46
- else:
47
- # unsure what module to use, but we can default to "py.warnings" like the original handler
41
+ try:
42
+ for _module_name, module in sys.modules.items():
43
+ module_path = getattr(module, "__file__", None)
44
+ if module_path and Path(filename).is_file() and Path(module_path).samefile(filename):
45
+ module_name = _module_name
46
+ break
47
+ else:
48
+ # unsure what module to use, but we can default to "py.warnings" like the original handler
49
+ module_name = "py.warnings"
50
+ except Exception:
51
+ # fall back to the default behavior and avoid ever failing from within logging functions
48
52
  module_name = "py.warnings"
49
53
 
50
54
  source_logger = logging.getLogger(module_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rats-apps
3
- Version: 0.11.1.dev20250624201650
3
+ Version: 0.11.2.dev20250624203246
4
4
  Summary: research analysis tools for building applications
5
5
  License: MIT
6
6
  Keywords: pipelines,machine learning,research
@@ -32,7 +32,7 @@ rats/cli/_plugin.py,sha256=o-pmEqU6mVH3QoRfRBrbG-XRTWCzt6pLKtSV3-5VSx0,1144
32
32
  rats/cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  rats/logs/__init__.py,sha256=_ZdkBmvW1yr5UOIB_m4OldNsUxK6NTDunNW4mvgQmpI,2115
34
34
  rats/logs/_app.py,sha256=EVjSjSaxJIL5LMJZf4yo9EpUBkkavaVXyg42cDsUt3I,5702
35
- rats/logs/_showwarning.py,sha256=g5Gq0I7GoHgABI4eCobq6xd4NaKuLGJFyK-SCvegDHA,1726
35
+ rats/logs/_showwarning.py,sha256=Pn4X-qSqmqzIoKeGiHRbywa0SY-HlLoG7JbhhKPX5hw,1922
36
36
  rats/logs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  rats/runtime/__init__.py,sha256=f9aEnynHuePP9OP5XCtB-6nCBvNWWlQQLTzuxFEueoQ,2150
38
38
  rats/runtime/__main__.py,sha256=y01yOymsL075poX95pc02sJR1HD0pDNFRZdpOdi0R6Y,79
@@ -55,7 +55,7 @@ rats_e2e/runtime/_data.py,sha256=3d1F_JO2gEOPUjBp_KYMP3TefyneiG_ktlJjdIIYUy8,125
55
55
  rats_e2e/runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  rats_resources/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  rats_resources/runtime/example-context.yaml,sha256=eiLsNFquFfkIpUhxUCQLzLigH21QF2F00fzA_e_aOKk,215
58
- rats_apps-0.11.1.dev20250624201650.dist-info/METADATA,sha256=-V4tG5faVZQd5ZLWXxKGPQmkqRoLnbxh_lFTrn9Gonc,8292
59
- rats_apps-0.11.1.dev20250624201650.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
60
- rats_apps-0.11.1.dev20250624201650.dist-info/entry_points.txt,sha256=Gf6bPwxIVjWd3Xx71upZo7eDJA5cujniLew6fxJMgA4,117
61
- rats_apps-0.11.1.dev20250624201650.dist-info/RECORD,,
58
+ rats_apps-0.11.2.dev20250624203246.dist-info/METADATA,sha256=dQVyFasvt9f7LGmQzqCiQ9q23naTiEYgURc8ae5CWEI,8292
59
+ rats_apps-0.11.2.dev20250624203246.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
60
+ rats_apps-0.11.2.dev20250624203246.dist-info/entry_points.txt,sha256=Gf6bPwxIVjWd3Xx71upZo7eDJA5cujniLew6fxJMgA4,117
61
+ rats_apps-0.11.2.dev20250624203246.dist-info/RECORD,,