From 16b117e3e8673f1be51b48a9b55e7ad563d87a38 Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Mon, 10 Jun 2019 10:45:01 +0200 Subject: [PATCH] [fix] #94 fix pylint alerts on examples folder --- examples/save_and_load_private_key_file_ewif.py | 4 ++-- examples/save_and_load_private_key_file_pubsec.py | 4 ++-- examples/save_and_load_private_key_file_wif.py | 4 ++-- examples/save_revoke_document.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/save_and_load_private_key_file_ewif.py b/examples/save_and_load_private_key_file_ewif.py index 2723b033..62b81206 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 6447756e..3e2a5de6 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 7cb7c662..efc28694 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 b17b3925..5102aebe 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') -- GitLab