async: fix pylint warnings

This commit is contained in:
Roman Zeyde
2015-02-03 17:42:53 +02:00
parent 1d5d564f4d
commit 1988144752

View File

@@ -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()