cfclient 2025.2__py3-none-any.whl → 2025.9rc1__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 cfclient might be problematic. Click here for more details.

cfclient/__init__.py CHANGED
@@ -38,10 +38,10 @@ else:
38
38
  config_path = AppDirs("cfclient", "Bitcraze").user_config_dir
39
39
 
40
40
  if not hasattr(sys, 'frozen'):
41
- import pkg_resources
41
+ from importlib.metadata import version, PackageNotFoundError
42
42
  try:
43
- VERSION = pkg_resources.require("cfclient")[0].version
44
- except pkg_resources.DistributionNotFound:
43
+ VERSION = version("cfclient")
44
+ except PackageNotFoundError:
45
45
  VERSION = "dev"
46
46
  else:
47
47
  try:
@@ -52,5 +52,5 @@ else:
52
52
  try:
53
53
  with open(os.path.join(module_path, "resources/log_param_doc.json")) as f:
54
54
  log_param_doc = json.load(f)
55
- except: # noqa
55
+ except (IOError, OSError, json.JSONDecodeError):
56
56
  log_param_doc = None