Simplify branch in download_worker exception handler

This commit is contained in:
Eric Blundell 2018-03-21 03:19:09 -05:00
parent b6a42aa8cd
commit b45960212b

View file

@ -609,7 +609,7 @@ class Client:
try:
os.remove(tmp_file_name)
except OSError as e:
if not e.errno == errno.ENOENT:
if e.errno != errno.ENOENT:
log.error(e, exc_info=True)
log.debug("{} stopped".format(name))