openziti / ziti-sdk-py

Ziti SDK for Python
Apache License 2.0
70 stars 2 forks source link

Cannot reload the same identity file in case of error #60

Open ahazeltonNF opened 11 months ago

ahazeltonNF commented 11 months ago

Adding exception handling around the openziti.load method to catch a load failure with the intention of correcting the error and attempting to load again does not work and just hangs in the second call to load. Sample code:

try:
  openziti.load('myIdentity.json')
except:
  # Fix the error with the file and try again
  openziti.load('myIdentity.json') # Hangs here