cartha-cli 1.0.3__py3-none-any.whl → 1.0.4__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.
@@ -383,24 +383,24 @@ def prove_lock(
383
383
  auto_chain_id = None
384
384
  try:
385
385
  auto_chain_id = pool_id_to_chain_id(pool_id)
386
- except NameError:
386
+ except (NameError, AttributeError):
387
387
  # Function not available - this shouldn't happen if imports worked
388
388
  # But handle gracefully by trying to import it
389
389
  try:
390
- from testnet.pool_ids import pool_id_to_chain_id
390
+ from ..testnet.pool_ids import pool_id_to_chain_id
391
391
  auto_chain_id = pool_id_to_chain_id(pool_id)
392
- except ImportError:
392
+ except (ImportError, ModuleNotFoundError):
393
393
  pass
394
394
 
395
395
  if not auto_chain_id:
396
396
  # Fallback: try to get from vault address
397
397
  try:
398
398
  auto_chain_id = vault_address_to_chain_id(vault)
399
- except NameError:
399
+ except (NameError, AttributeError):
400
400
  try:
401
- from testnet.pool_ids import vault_address_to_chain_id
401
+ from ..testnet.pool_ids import vault_address_to_chain_id
402
402
  auto_chain_id = vault_address_to_chain_id(vault)
403
- except ImportError:
403
+ except (ImportError, ModuleNotFoundError):
404
404
  pass
405
405
 
406
406
  if auto_chain_id:
@@ -431,11 +431,11 @@ def prove_lock(
431
431
  expected_chain_id = None
432
432
  try:
433
433
  expected_chain_id = vault_address_to_chain_id(vault)
434
- except NameError:
434
+ except (NameError, AttributeError):
435
435
  try:
436
- from testnet.pool_ids import vault_address_to_chain_id
436
+ from ..testnet.pool_ids import vault_address_to_chain_id
437
437
  expected_chain_id = vault_address_to_chain_id(vault)
438
- except ImportError:
438
+ except (ImportError, ModuleNotFoundError):
439
439
  pass
440
440
 
441
441
  if expected_chain_id and expected_chain_id != chain:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cartha-cli
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: CLI utilities for Cartha subnet miners.
5
5
  Project-URL: Homepage, https://cartha.finance
6
6
  Project-URL: Repository, https://github.com/General-Tao-Ventures/cartha-cli
@@ -17,15 +17,15 @@ cartha_cli/commands/miner_password.py,sha256=7cbcyrJ9KzCyJ68_174U_CXjBUt9BaYhgKA
17
17
  cartha_cli/commands/miner_status.py,sha256=tWlCWcuwm9NEd4USuCLp_6qObikX2odc2e7m6Y_vNrU,21873
18
18
  cartha_cli/commands/pair_status.py,sha256=LoU-fA1MXuWZGHNmeKPMjwvNw30Yn094ZD1EC0-WXVc,19978
19
19
  cartha_cli/commands/pools.py,sha256=P02SEp23a7OdrgNj6AaiJTnQ9K_QrI300DzucA6HH8A,3884
20
- cartha_cli/commands/prove_lock.py,sha256=ihcZLrYcc9Pr4X75K9cgaDEod0Sjjyj58sAUPAhRQEo,60268
20
+ cartha_cli/commands/prove_lock.py,sha256=Pv41zrQYlHvRt_k1oD4oogPpNSF5ZYpwwpzDtGPBRmQ,60397
21
21
  cartha_cli/commands/register.py,sha256=sxbYO0V4NucOKLZpaFoVnhFDHLSLDHREoMtN9DjyLsM,10227
22
22
  cartha_cli/commands/shared_options.py,sha256=itHzJSgxuKQxUVOh1_jVTcMQXjI3PPzexQyhqIbabxc,5874
23
23
  cartha_cli/commands/version.py,sha256=u5oeccQzK0LLcCbgZm0U8-Vslk5vB_lVvW3xT5HPeTg,456
24
24
  cartha_cli/testnet/README.md,sha256=kWKaLtq6t_46W-mvXkSaLi2fjXDELLk5ntVGkogiUY0,14511
25
25
  cartha_cli/testnet/__init__.py,sha256=xreJMXs-ZKTkPtUQBR5xdY7ImOyUiF7WKG6bv9J9aBM,41
26
26
  cartha_cli/testnet/pool_ids.py,sha256=0jvQ6tvc6sL0aGKkl31KXM6ngVpUboYiABY5SDMaRCQ,6747
27
- cartha_cli-1.0.3.dist-info/METADATA,sha256=5c0z7KdAKD3ZejILXjQF9GI6WvIUcqxUdmgv-qhm1eY,5794
28
- cartha_cli-1.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
29
- cartha_cli-1.0.3.dist-info/entry_points.txt,sha256=sTYVMgb9l0fuJibUtWpGnIoDmgHinne97G4Y_cCwC-U,43
30
- cartha_cli-1.0.3.dist-info/licenses/LICENSE,sha256=B4UCiDn13m4xYwIl4TMKfbuKw7kh9pg4c81rJecxHSo,1076
31
- cartha_cli-1.0.3.dist-info/RECORD,,
27
+ cartha_cli-1.0.4.dist-info/METADATA,sha256=hi8-tPSksk3s58HIx3RAwd2M6uFVFtOUlR02DkGExkQ,5794
28
+ cartha_cli-1.0.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
29
+ cartha_cli-1.0.4.dist-info/entry_points.txt,sha256=sTYVMgb9l0fuJibUtWpGnIoDmgHinne97G4Y_cCwC-U,43
30
+ cartha_cli-1.0.4.dist-info/licenses/LICENSE,sha256=B4UCiDn13m4xYwIl4TMKfbuKw7kh9pg4c81rJecxHSo,1076
31
+ cartha_cli-1.0.4.dist-info/RECORD,,