meshcore-cli 1.3.6__tar.gz → 1.3.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshcore-cli
3
- Version: 1.3.6
3
+ Version: 1.3.7
4
4
  Summary: Command line interface to meshcore companion radios
5
5
  Project-URL: Homepage, https://github.com/fdlamotte/meshcore-cli
6
6
  Project-URL: Issues, https://github.com/fdlamotte/meshcore-cli/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "meshcore-cli"
7
- version = "1.3.6"
7
+ version = "1.3.7"
8
8
  authors = [
9
9
  { name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
10
10
  ]
@@ -10,7 +10,7 @@ import getopt, json, shlex, re
10
10
  import logging
11
11
  import requests
12
12
  from bleak import BleakScanner, BleakClient
13
- from bleak.exc import BleakError
13
+ from bleak.exc import BleakError, BleakDBusError
14
14
  import serial.tools.list_ports
15
15
  from pathlib import Path
16
16
  import traceback
@@ -32,7 +32,7 @@ import re
32
32
  from meshcore import MeshCore, EventType, logger
33
33
 
34
34
  # Version
35
- VERSION = "v1.3.6"
35
+ VERSION = "v1.3.7"
36
36
 
37
37
  # default ble address is stored in a config file
38
38
  MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
@@ -3473,7 +3473,7 @@ async def main(argv):
3473
3473
  for d in devices :
3474
3474
  if not d.name is None and d.name.startswith("MeshCore-"):
3475
3475
  print(f" {d.address} {d.name}")
3476
- except BleakError:
3476
+ except (BleakError, BleakDBusError):
3477
3477
  print(" No BLE HW")
3478
3478
  print("\nSerial ports:")
3479
3479
  ports = serial.tools.list_ports.comports()
@@ -3488,7 +3488,7 @@ async def main(argv):
3488
3488
  for d in devices:
3489
3489
  if not d.name is None and d.name.startswith("MeshCore-"):
3490
3490
  choices.append(({"type":"ble","device":d}, f"{d.address:<22} {d.name}"))
3491
- except BleakError:
3491
+ except (BleakError, BleakDBusError):
3492
3492
  logger.info("No BLE Device")
3493
3493
 
3494
3494
  ports = serial.tools.list_ports.comports()
@@ -3559,7 +3559,7 @@ async def main(argv):
3559
3559
 
3560
3560
  try :
3561
3561
  mc = await MeshCore.create_ble(address=address, device=device, client=client, debug=debug, only_error=json_output, pin=pin)
3562
- except BleakError :
3562
+ except (BleakError, BleakDBusError):
3563
3563
  print("BLE connection asked (default behaviour), but no BLE HW found")
3564
3564
  print("Call meshcore-cli with -h for some more help (on commands)")
3565
3565
  command_usage()
File without changes
File without changes
File without changes
File without changes
File without changes