verify.py: os.path.exists exception handling (#13656)

This commit is contained in:
Daryl W. Grunau
2019-11-11 16:47:47 -07:00
committed by Todd Gamblin
parent eb22abc521
commit 9c5b583508

View File

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