circfirm 5.1.0__py3-none-any.whl → 5.1.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.
circfirm/cli/__init__.py CHANGED
@@ -17,6 +17,7 @@ from typing import Any, TypeVar
17
17
 
18
18
  import click
19
19
  import click_spinner
20
+ import requests
20
21
  import yaml
21
22
 
22
23
  import circfirm
@@ -103,9 +104,10 @@ def download_if_needed(board: str, version: str, language: str) -> None:
103
104
  circfirm.backend.cache.download_uf2,
104
105
  args=(board, version, language),
105
106
  )
106
- except ConnectionError as err:
107
+ except (ConnectionError, requests.exceptions.ConnectionError) as err:
107
108
  click.echo(" failed") # Mark as failed
108
- click.echo(f"Error: {err.args[0]}")
109
+ if isinstance(err, ConnectionError):
110
+ click.echo(f"Error: {err.args[0]}")
109
111
  sys.exit(4)
110
112
  else:
111
113
  click.echo("Using cached firmware file")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: circfirm
3
- Version: 5.1.0
3
+ Version: 5.1.1
4
4
  Summary: CLI tool for install firmware for CircuitPython boards
5
5
  Author-email: Alec Delaney <tekktrik@gmail.com>
6
6
  License: MIT
@@ -6,7 +6,7 @@ circfirm/backend/cache.py,sha256=uVz8F-ksoi-wgwgZP5U3PY60yBqNtUWgE7I4Rnz_kJE,287
6
6
  circfirm/backend/device.py,sha256=sii80sAKFKtLscgbhaTIOKElGiLOG161iEQitMzBlUs,1737
7
7
  circfirm/backend/github.py,sha256=xuJxeRjYsrQXearlQnoES0gLGs-xTjrbGeTtGeGtOw4,2088
8
8
  circfirm/backend/s3.py,sha256=waz4Uq21tuvcWTk3ORaCKYooCsNmNG0iNXY-J8ceoJ4,2109
9
- circfirm/cli/__init__.py,sha256=xsFUD69Md_Vhg4rvUBH2844JCRCCeAqjzDZ8B3tQzaw,6421
9
+ circfirm/cli/__init__.py,sha256=jsXX9-VwePHT2svKNqs3aZs63r1rwAyIu2j18pCndrs,6529
10
10
  circfirm/cli/about.py,sha256=h5Ud5AKVHBmPqb0d4bQwPSBqtIR1aHLG-6V-H3bNqHU,338
11
11
  circfirm/cli/cache.py,sha256=ctjbuwyG_Q3FLO8NGUb5Hp7lTcccK2Gch666A3xG9b4,5388
12
12
  circfirm/cli/config.py,sha256=bYzIHzO0LQZhzoBGS9xKnbxPgxS8htWKMrUDaXw8fhg,3120
@@ -17,11 +17,11 @@ circfirm/cli/query.py,sha256=wL29qaFBt6lnWstkzNO6aPIy5lktI2DNewABSm9b_hU,3624
17
17
  circfirm/cli/update.py,sha256=8EK5t8q-B237uIMDEffG0A4hrsG4C9PztDoIMqnmqI8,3525
18
18
  circfirm/templates/settings.yaml,sha256=SM1zjXvZg1jikzn9TjgOufl0Pn9KBbrw8sIcJ01BRhQ,69
19
19
  circfirm/templates/settings.yaml.license,sha256=FIvC5TnLXwPBj-dgEV4FBwAlJxzMXhgl50TXLv2d88o,96
20
- circfirm-5.1.0.dist-info/licenses/LICENSE,sha256=6pPP6gJ00tqCkxg5gABHDwWUiXZ_mBzH94xxPOqwGj4,1069
21
- circfirm-5.1.0.dist-info/licenses/NOTICE,sha256=-iTImDmAffekkp_kj8De0_pvckHvXAHLPAJTWOgQsiw,2956
22
- circfirm-5.1.0.dist-info/licenses/NOTICE.license,sha256=FIvC5TnLXwPBj-dgEV4FBwAlJxzMXhgl50TXLv2d88o,96
23
- circfirm-5.1.0.dist-info/METADATA,sha256=G4ZUhip84Ux5bf8SA9NH_RFpx8gZT4Uy2shEWZ8iQFY,4734
24
- circfirm-5.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
25
- circfirm-5.1.0.dist-info/entry_points.txt,sha256=33qZTmSuXz8dgi29yjSyb8VsEA8HyhWuhn2MNcjatGQ,46
26
- circfirm-5.1.0.dist-info/top_level.txt,sha256=qA2407wap3My6jGA5uchH2JjUM7qn73oBPwALN7GR5k,9
27
- circfirm-5.1.0.dist-info/RECORD,,
20
+ circfirm-5.1.1.dist-info/licenses/LICENSE,sha256=6pPP6gJ00tqCkxg5gABHDwWUiXZ_mBzH94xxPOqwGj4,1069
21
+ circfirm-5.1.1.dist-info/licenses/NOTICE,sha256=-iTImDmAffekkp_kj8De0_pvckHvXAHLPAJTWOgQsiw,2956
22
+ circfirm-5.1.1.dist-info/licenses/NOTICE.license,sha256=FIvC5TnLXwPBj-dgEV4FBwAlJxzMXhgl50TXLv2d88o,96
23
+ circfirm-5.1.1.dist-info/METADATA,sha256=BqazMfwA8Wlq1EvdeCz8GNDoUOllj7DCGTnKPg9dCw0,4734
24
+ circfirm-5.1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
25
+ circfirm-5.1.1.dist-info/entry_points.txt,sha256=33qZTmSuXz8dgi29yjSyb8VsEA8HyhWuhn2MNcjatGQ,46
26
+ circfirm-5.1.1.dist-info/top_level.txt,sha256=qA2407wap3My6jGA5uchH2JjUM7qn73oBPwALN7GR5k,9
27
+ circfirm-5.1.1.dist-info/RECORD,,