knotctl 0.1.2__py3-none-any.whl → 0.1.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.
knotctl/__init__.py CHANGED
@@ -172,9 +172,14 @@ def main() -> int:
172
172
  zname = args.zone
173
173
  else:
174
174
  zname = args.zone + "."
175
- soa_url = setup_url(baseurl, None, None, zname, "SOA", None, args.zone)
176
- soa_json = knotctl.runner.lister(soa_url, True, ret=True)
177
- ttl = soa_json[0]["ttl"]
175
+ try:
176
+ soa_url = setup_url(baseurl, None, None, zname, "SOA", None, args.zone)
177
+ soa_json = knotctl.runner.lister(soa_url, True, ret=True)
178
+ ttl = soa_json[0]["ttl"]
179
+ except requests.exceptions.RequestException as e:
180
+ output(error(e, "No permissions, or zone doesn't exist"))
181
+ return 0
182
+
178
183
  if args.command == "user":
179
184
  if args.username:
180
185
  user = args.username
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: knotctl
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: A CLI for knotapi.
5
5
  Author-email: Micke Nordin <hej@mic.ke>
6
6
  Requires-Python: >=3.9
@@ -1,11 +1,11 @@
1
- knotctl/__init__.py,sha256=XBYNdvml8P_GiElo6xMi9Lpw1foCiNwzDVQHWgqFpuY,6122
1
+ knotctl/__init__.py,sha256=O2CZ7eTeaJzrJ33wprt9vKmNyv1Ni1lbtZaf_TdRuCI,6297
2
2
  knotctl/__main__.py,sha256=-Y8KgiSSg0QF7YZRuMCR-vyMxQ-PizDSZ2bqUbQSFSk,64
3
3
  knotctl/config/__init__.py,sha256=2CKbH_ZseBDbbzYL_N96o62BNRNvbHWJ0DRK0pvCqpI,2547
4
4
  knotctl/openstack/__init__.py,sha256=ywKUSjiwHtqrVUMg1iJvd5wiW4CmycjlTU_DoqlOOhE,480
5
5
  knotctl/runners/__init__.py,sha256=dFYhmnS9RyBoAdgGXph2NzUKRiFPpX7z-U9IEpV6XcU,7456
6
6
  knotctl/utils/__init__.py,sha256=y8P74G_Ox1Y74iNDs_udYyJtBc-_WW-mtzj9hsxo6Q0,10808
7
- knotctl-0.1.2.dist-info/entry_points.txt,sha256=oGFZaAfsfqC-KbiCm04W6DTBFCq2f5F_p3KMEgNoY4s,40
8
- knotctl-0.1.2.dist-info/licenses/LICENSE,sha256=tqi_Y64slbCqJW7ndGgNe9GPIfRX2nVGb3YQs7FqzE4,34670
9
- knotctl-0.1.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
10
- knotctl-0.1.2.dist-info/METADATA,sha256=1GEPN-B9n81Fwg6CO-RWKNwmjeeDHkalnyaWOBeRcck,7618
11
- knotctl-0.1.2.dist-info/RECORD,,
7
+ knotctl-0.1.4.dist-info/entry_points.txt,sha256=oGFZaAfsfqC-KbiCm04W6DTBFCq2f5F_p3KMEgNoY4s,40
8
+ knotctl-0.1.4.dist-info/licenses/LICENSE,sha256=tqi_Y64slbCqJW7ndGgNe9GPIfRX2nVGb3YQs7FqzE4,34670
9
+ knotctl-0.1.4.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
10
+ knotctl-0.1.4.dist-info/METADATA,sha256=VSHMU0hkBuxkWBXmY4Xc08n068y4Qpc1187zEiQeTc8,7618
11
+ knotctl-0.1.4.dist-info/RECORD,,