bluer-objects 6.317.1__py3-none-any.whl → 6.322.1__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.

Potentially problematic release.


This version of bluer-objects might be problematic. Click here for more details.

bluer_objects/__init__.py CHANGED
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} Object management in Bash."
6
6
 
7
- VERSION = "6.317.1"
7
+ VERSION = "6.322.1"
8
8
 
9
9
  REPO_NAME = "bluer-objects"
10
10
 
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, List
1
+ from typing import Any, Dict, List, Union
2
2
  import yaml
3
3
  import numpy as np
4
4
  import json
@@ -30,9 +30,15 @@ def finish_saving(
30
30
  success: bool,
31
31
  message: str,
32
32
  log: bool = True,
33
+ exception: Union[Exception, None] = None,
33
34
  ) -> bool:
34
35
  if not success:
35
- crash_report(f"{message}: failed.")
36
+ crash_report(
37
+ "{}: failed: {}".format(
38
+ message,
39
+ exception,
40
+ )
41
+ )
36
42
  elif log:
37
43
  logger.info(message)
38
44
 
@@ -246,12 +252,14 @@ def save_yaml(
246
252
  if not prepare_for_saving(filename):
247
253
  return False
248
254
 
255
+ exception = None
249
256
  success = True
250
257
  try:
251
258
  with open(filename, "w") as f:
252
259
  yaml.dump(data, f)
253
- except:
260
+ except Exception as e:
254
261
  success = False
262
+ exception = e
255
263
 
256
264
  return finish_saving(
257
265
  success,
@@ -261,4 +269,5 @@ def save_yaml(
261
269
  filename,
262
270
  ),
263
271
  log,
272
+ exception,
264
273
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_objects
3
- Version: 6.317.1
3
+ Version: 6.322.1
4
4
  Summary: 🌀 Object management in Bash.
5
5
  Home-page: https://github.com/kamangir/bluer-objects
6
6
  Author: Arash Abadpour (Kamangir)
@@ -65,6 +65,6 @@ pip install bluer-objects
65
65
 
66
66
  [![pylint](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/bluer-objects.svg)](https://pypi.org/project/bluer-objects/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/bluer-objects)](https://pypistats.org/packages/bluer-objects)
67
67
 
68
- built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.317.1`](https://github.com/kamangir/bluer-objects).
68
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.322.1`](https://github.com/kamangir/bluer-objects).
69
69
 
70
70
  built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
@@ -1,4 +1,4 @@
1
- bluer_objects/__init__.py,sha256=JkRIAGUXIONHpmIWt1EkQaI7NAmrG2fKp6UdYkev2oY,315
1
+ bluer_objects/__init__.py,sha256=8s1PgZJPlJ4pc1gocF3kBql5DyMVUcQ5FaRcCFqdz4M,315
2
2
  bluer_objects/__main__.py,sha256=Yqfov833_hJuRne19WrGhT5DWAPtdffpoMxeSXS7EGw,359
3
3
  bluer_objects/config.env,sha256=ReX0OSH_dK2tdD4-zAlp-427BB57yw8uDTS6tLYN4K0,270
4
4
  bluer_objects/env.py,sha256=ecwldUVsamxAjOI0a6PmbZPcyhdUZgzJ-nhAPh0CJRo,2085
@@ -87,7 +87,7 @@ bluer_objects/file/__main__.py,sha256=katbvYg2ykEcs14ZY1kvCKaA6KB_vhlPCLPuJlMX_k
87
87
  bluer_objects/file/classes.py,sha256=TRgeRP2yxInPkBnywhuB4BsoBcBRA3UmQzX1dI43UxU,872
88
88
  bluer_objects/file/functions.py,sha256=YBJFaI5l-bY1LSz8S_hMhbCmym6cULZTF5fzP2W4Osk,6604
89
89
  bluer_objects/file/load.py,sha256=1zt5xC95HFr89G9lsi3gCJMSvC4Bt0vVeeUEf3NjpOQ,4281
90
- bluer_objects/file/save.py,sha256=eXl5pM8Q29Jq8skVkZkU6THoqyMd2FkfFIPgO0-NarM,5056
90
+ bluer_objects/file/save.py,sha256=IuSbK6GExzOhHqaVfAhoGRqtgCTaon3Fr1T7rSzyV3w,5277
91
91
  bluer_objects/graphics/__init__.py,sha256=Dd0kQqN7Ldvp1N9oyIirPZ6W3IdUtfPj2u21Bf4W_MI,213
92
92
  bluer_objects/graphics/__main__.py,sha256=5_acfal1MnfzhDrp_pfDbC7oy5uzf6vDiiG3lvgx4VU,2041
93
93
  bluer_objects/graphics/frame.py,sha256=WcSn-0oqDw48Akmn_bwcjDC9U_kKqRYRoGWYPoKyFvY,321
@@ -186,8 +186,8 @@ bluer_objects/tests/test_web_is_accessible.py,sha256=2Y20NAEDMblg0MKnhnqcfw3XVKE
186
186
  bluer_objects/web/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
187
187
  bluer_objects/web/__main__.py,sha256=xf2Ob54FI8JEokfGhFmiyOBdD9nBactwqmZvsKsdioU,624
188
188
  bluer_objects/web/functions.py,sha256=KNufAFOc6N3BYf83lN2rUpKUdsnzb2anWyp9koFRVUo,172
189
- bluer_objects-6.317.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
190
- bluer_objects-6.317.1.dist-info/METADATA,sha256=pKpKV9JJSzH37QSct--MYf0XDUMQ4Ltq1RS4mfdW-Lk,3780
191
- bluer_objects-6.317.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
192
- bluer_objects-6.317.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
193
- bluer_objects-6.317.1.dist-info/RECORD,,
189
+ bluer_objects-6.322.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
190
+ bluer_objects-6.322.1.dist-info/METADATA,sha256=YZCM8792s_KHOnuBzk1wcEMeMbybhULXJR156RLFKBk,3780
191
+ bluer_objects-6.322.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
192
+ bluer_objects-6.322.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
193
+ bluer_objects-6.322.1.dist-info/RECORD,,