From 1988144752a5f22ec5181d19326cdd24ff119c2b Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 3 Feb 2015 17:42:53 +0200 Subject: [PATCH] async: fix pylint warnings --- amodem/async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amodem/async.py b/amodem/async.py index 0699c2e..df228e8 100644 --- a/amodem/async.py +++ b/amodem/async.py @@ -26,7 +26,7 @@ class AsyncReader(object): queue.put(buf) total += len(buf) log.debug('AsyncReader thread stopped (read %d bytes)', total) - except: + except BaseException: log.exception('AsyncReader thread failed') queue.put(None) @@ -70,7 +70,7 @@ class AsyncWriter(object): dst.write(buf) total += len(buf) log.debug('AsyncWriter thread stopped (written %d bytes)', total) - except: + except BaseException: log.exception('AsyncWriter thread failed') error.set()