Don't take an exception if the manifest doesn't exist.

- This is useful particularly for imports from the loader.
This commit is contained in:
Jeffrey Townsend
2016-11-30 22:10:29 +00:00
parent 66ac4ef684
commit 56b2ca49f9

View File

@@ -1,3 +1,4 @@
import os
import json
class OnlVersionManifest(object):
@@ -30,8 +31,8 @@ class OnlLoaderVersion(OnlVersionBase):
#
# print onl.versions.rootfs.BUILD_TIMESTAMP
#
rootfs = OnlRootfsVersion()
loader = OnlLoaderVersion()
rootfs = OnlRootfsVersion() if os.path.exists(OnlRootfsVersion.MANIFEST) else None
loader = OnlLoaderVersion() if os.path.exists(OnlLoaderVersion.MANIFEST) else None