Merge branch 'with_suppress' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
6a8b7bf92f
1 changed files with 1 additions and 3 deletions
4
setup.py
4
setup.py
|
|
@ -336,11 +336,9 @@ def newer(dest, *sources):
|
|||
except EnvironmentError:
|
||||
return True
|
||||
for s in sources:
|
||||
try:
|
||||
with suppress(FileNotFoundError):
|
||||
if os.path.getmtime(s) >= dtime:
|
||||
return True
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue