hello API 8 !

This commit is contained in:
Ayush Saini 2023-08-13 17:21:49 +05:30
parent 3a2b6ade68
commit 0284fee95c
1166 changed files with 26061 additions and 375100 deletions

View file

@ -59,7 +59,7 @@ class DirectoryManifest:
sha = hashlib.sha256()
fullfilepath = os.path.join(pathstr, filepath)
if not os.path.isfile(fullfilepath):
raise Exception(f'File not found: "{fullfilepath}"')
raise RuntimeError(f'File not found: "{fullfilepath}".')
with open(fullfilepath, 'rb') as infile:
filebytes = infile.read()
filesize = len(filebytes)