[gnome-keysign: 10/16] send: log as exception and remove unnecessary close()



commit 45b7c6e656215aba14e748086727e5c308aa87fd
Author: RyuzakiKK <aasonykk gmail com>
Date:   Mon Mar 25 13:13:04 2019 +0100

    send: log as exception and remove unnecessary close()

 keysign/send.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/keysign/send.py b/keysign/send.py
index 1f83aa3..e97c396 100644
--- a/keysign/send.py
+++ b/keysign/send.py
@@ -130,14 +130,13 @@ class SendApp:
         if not signatures:
             with open(filename, "rb") as si:
                 signatures.append(si.read())
-            si.close()
 
         try:
             for signature in signatures:
                 gpgmeh.import_signature(signature)
             self.signature_imported()
         except errors.GPGMEError as e:
-            log.error(e)
+            log.exception(e)
             self.signature_import_error()
 
     @inlineCallbacks


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]