2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-27 12:28:09 +00:00

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