batchfetch 1.2.2__tar.gz → 1.2.3__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.1
2
2
  Name: batchfetch
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Efficiently clone and pull multiple Git repositories.
5
5
  Home-page: https://github.com/jamescherti/batchfetch
6
6
  Author: James Cherti
@@ -92,6 +92,11 @@ class BatchFetchCli:
92
92
  try:
93
93
  with open(path, "r", encoding="utf-8") as fhandler:
94
94
  yaml_dict = yaml.load(fhandler, Loader=yaml.FullLoader)
95
+ if not isinstance(yaml_dict, dict):
96
+ print(f"Error: Invalid format: {yaml_dict}.",
97
+ file=sys.stderr)
98
+ sys.exit(1)
99
+
95
100
  self._loads(dict(yaml_dict))
96
101
  except OSError as err:
97
102
  raise BatchFetchError(str(err)) from err
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: batchfetch
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Efficiently clone and pull multiple Git repositories.
5
5
  Home-page: https://github.com/jamescherti/batchfetch
6
6
  Author: James Cherti
@@ -22,7 +22,7 @@ from setuptools import find_packages, setup
22
22
 
23
23
  setup(
24
24
  name="batchfetch",
25
- version="1.2.2",
25
+ version="1.2.3",
26
26
  packages=find_packages(),
27
27
  description="Efficiently clone and pull multiple Git repositories.",
28
28
  license="GPLv3",
File without changes
File without changes
File without changes