verify.py: os.path.exists exception handling (#13656)
This commit is contained in:
parent
eb22abc521
commit
9c5b583508
1 changed files with 16 additions and 14 deletions
|
@ -28,6 +28,8 @@ def compute_hash(path):
|
|||
|
||||
def create_manifest_entry(path):
|
||||
data = {}
|
||||
|
||||
if os.path.exists(path):
|
||||
stat = os.stat(path)
|
||||
|
||||
data['mode'] = stat.st_mode
|
||||
|
|
Loading…
Reference in a new issue