diff --git a/examples/save_and_load_private_key_file_ewif.py b/examples/save_and_load_private_key_file_ewif.py index 2723b03360bf7bec937abf1dd5fda476b978f238..62b81206d79601297c7b5a9c6f861ec05125fdcc 100644 --- a/examples/save_and_load_private_key_file_ewif.py +++ b/examples/save_and_load_private_key_file_ewif.py @@ -53,8 +53,8 @@ try: # check public key from file print("Public key %s loaded from file %s" % (loaded_signer.pubkey, PRIVATE_KEY_FILE_PATH)) -except Exception as e: - print(e) +except IOError as error: + print(error) exit(1) diff --git a/examples/save_and_load_private_key_file_pubsec.py b/examples/save_and_load_private_key_file_pubsec.py index 6447756e9e16872bf47c45f7a35d87390651f6de..3e2a5de61ea7efd2adcd272c4822d79098cb0625 100644 --- a/examples/save_and_load_private_key_file_pubsec.py +++ b/examples/save_and_load_private_key_file_pubsec.py @@ -50,8 +50,8 @@ try: # check public key from file print("Public key %s loaded from file %s" % (loaded_signer.pubkey, PRIVATE_KEY_FILE_PATH)) -except Exception as e: - print(e) +except IOError as error: + print(error) exit(1) diff --git a/examples/save_and_load_private_key_file_wif.py b/examples/save_and_load_private_key_file_wif.py index 7cb7c662269772079b578ff2559e0021c550bcf4..efc28694ced69d383db809148d46123c57841d67 100644 --- a/examples/save_and_load_private_key_file_wif.py +++ b/examples/save_and_load_private_key_file_wif.py @@ -50,8 +50,8 @@ try: # check public key from file print("Public key %s loaded from file %s" % (loaded_signer.pubkey, PRIVATE_KEY_FILE_PATH)) -except Exception as e: - print(e) +except IOError as error: + print(error) exit(1) diff --git a/examples/save_revoke_document.py b/examples/save_revoke_document.py index b17b3925d590616c8002caacbee58602b68fad6c..5102aebef16de9e85043f96b6e22734828cbdb27 100644 --- a/examples/save_revoke_document.py +++ b/examples/save_revoke_document.py @@ -131,7 +131,7 @@ async def main(): exit(1) # get the revoke document - revocation_signed_raw_document = get_signed_raw_revocation_document(identity_document, salt, password) + revocation_signed_raw_document = get_signed_raw_revocation_document(identity, salt, password) # save revoke document in a file fp = open(REVOCATION_DOCUMENT_FILE_PATH, 'w')