mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
Raises exception on missing cli keys
load_key_file_data was returning False on FileNotFound but get_pk was expecting an exception
This commit is contained in:
@@ -61,13 +61,13 @@ def load_key_file_data(file_name):
|
||||
key = key_file.read()
|
||||
return key
|
||||
|
||||
except FileNotFoundError:
|
||||
except FileNotFoundError as e:
|
||||
logger.error("Client's key file not found. Please check your settings.")
|
||||
return False
|
||||
raise e
|
||||
|
||||
except IOError as e:
|
||||
logger.error("I/O error({}): {}".format(e.errno, e.strerror))
|
||||
return False
|
||||
raise e
|
||||
|
||||
|
||||
# Makes sure that the folder APPOINTMENTS_FOLDER_NAME exists, then saves the appointment and signature in it.
|
||||
|
||||
Reference in New Issue
Block a user