kisa-utils 0.42.11__py3-none-any.whl → 0.42.13__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.
kisa_utils/threads.py CHANGED
@@ -11,6 +11,7 @@ import time
11
11
  import datetime
12
12
  import threading
13
13
  import inspect
14
+ import traceback
14
15
  from . import codes
15
16
  from .response import Response, Ok, Error
16
17
  from typing import Callable
@@ -143,7 +144,10 @@ def __loop(function:Callable, duration:float, *args:tuple, **kwargs:dict) -> Non
143
144
  try:
144
145
  function(*args, **kwargs)
145
146
  except Exception as e:
146
- print(f'`[run-every ERR] `{inspect.getsourcefile(function)}::{function.__name__}` failed with exception: e`')
147
+ print(f'`[run-every ERR] `{inspect.getsourcefile(function)}::{function.__name__}` failed with exception:')
148
+ print('-----------')
149
+ traceback.print_exc()
150
+ print('-----------')
147
151
 
148
152
 
149
153
  def runEvery(function:Callable, duration:float, *args:tuple, **kwargs:dict) -> dict[str,str|bool]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kisa-utils
3
- Version: 0.42.11
3
+ Version: 0.42.13
4
4
  Summary: Utility functions and modules for KISA Developers
5
5
  Author: Tom Bukenya
6
6
  Author-email: glayn2bukman@gmail.com
@@ -13,7 +13,7 @@ kisa_utils/remote.py,sha256=0RDrfC4RUW4m6JLziC0_EXJYqzWp38Rw8NDroJ0MuqI,2149
13
13
  kisa_utils/response.py,sha256=asETUBkeF5OlSTwa-coa7lZDCKmQlHCmHf6eaZFl8CU,4560
14
14
  kisa_utils/standardize.py,sha256=nt-uzHQFoKxGscD_MpDYXw65Teg3724whAqa6Kh_zhE,2231
15
15
  kisa_utils/storage.py,sha256=6NdEVrHMS7WB_vmCwiGigIinu-EjxalFJhk1kj-_vWs,5990
16
- kisa_utils/threads.py,sha256=U1hVCmDoCrWsi8fOJptewJ0Q0hXtGn8UZVT52pbC36E,12979
16
+ kisa_utils/threads.py,sha256=xQLlt4jnc03iNW5is7IBZLckVj5LT6xdV-uT8VSeQ74,13093
17
17
  kisa_utils/token.py,sha256=Y2qglWYWpmHxoXBh-TH0r1as0uPV5LLqMNcunLvM4vM,7850
18
18
  kisa_utils/permissions/__config__.py,sha256=i3ELkOydDnjKx2ozQTxLZdZ8DXSeUncnl2kRxANjFmM,613
19
19
  kisa_utils/permissions/__init__.py,sha256=iAsGEf5Ktw3gPJ5ZKL8BnuqX8e_S4QgsCVgfaRYi4Qg,48068
@@ -27,7 +27,7 @@ kisa_utils/servers/flask.py,sha256=XZYY1pWnP1mSvaS5Uv8G3EFJV5BJBQtU2gDbO8suvLc,4
27
27
  kisa_utils/structures/__init__.py,sha256=JBU1j3A42jQ62ALKnsS1Hav9YXcYwjDw1wQJtohXPbU,83
28
28
  kisa_utils/structures/utils.py,sha256=665rXIapGwFqejizeJwy3DryeskCQOdgP25BCdLkGvk,2898
29
29
  kisa_utils/structures/validator.py,sha256=oCSgY_itst6bZdC5g8yVU4-lSH2xnUsOx3X-oPyV7nA,4626
30
- kisa_utils-0.42.11.dist-info/METADATA,sha256=RRVFT0IudGdenO9WQWlCG9AXy2RBec1YTC7pB-VhAlw,478
31
- kisa_utils-0.42.11.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
32
- kisa_utils-0.42.11.dist-info/top_level.txt,sha256=GFOLXZYqpBG9xtscGa2uGJAEiZ5NwsqHBH9NylnB29M,11
33
- kisa_utils-0.42.11.dist-info/RECORD,,
30
+ kisa_utils-0.42.13.dist-info/METADATA,sha256=LUa71sF8hha7RUJh5V1NJY4VQfF14hSbZbHlSOoGrjo,478
31
+ kisa_utils-0.42.13.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
32
+ kisa_utils-0.42.13.dist-info/top_level.txt,sha256=GFOLXZYqpBG9xtscGa2uGJAEiZ5NwsqHBH9NylnB29M,11
33
+ kisa_utils-0.42.13.dist-info/RECORD,,