tools/makemanifest.py: Skip freezing unsupported files with warning.
This commit is contained in:
parent
f0e4677f0d
commit
d2e6cfd8fd
@ -185,7 +185,8 @@ def freeze_internal(kind, path, script, opt):
|
|||||||
kind = k
|
kind = k
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise FreezeError('unsupported file type {}'.format(script))
|
print('warn: unsupported file type, skipped freeze: {}'.format(script))
|
||||||
|
return
|
||||||
wanted_extension = extension_kind[kind]
|
wanted_extension = extension_kind[kind]
|
||||||
if not script.endswith(wanted_extension):
|
if not script.endswith(wanted_extension):
|
||||||
raise FreezeError('expecting a {} file, got {}'.format(wanted_extension, script))
|
raise FreezeError('expecting a {} file, got {}'.format(wanted_extension, script))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user