verify.py: os.path.exists exception handling (#13656)
This commit is contained in:
parent
e5b38c525e
commit
5a9389a528
@ -28,6 +28,8 @@ def compute_hash(path):
|
|||||||
|
|
||||||
def create_manifest_entry(path):
|
def create_manifest_entry(path):
|
||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
|
if os.path.exists(path):
|
||||||
stat = os.stat(path)
|
stat = os.stat(path)
|
||||||
|
|
||||||
data['mode'] = stat.st_mode
|
data['mode'] = stat.st_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user