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:
parent
b6a42aa8cd
commit
b45960212b
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user