Do not assert if XRAY_PART env variable is not present

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2020-01-16 15:19:14 +01:00
parent d571c0c014
commit 39aecf2d0c
2 changed files with 1 additions and 1 deletions

View File

@ -80,6 +80,7 @@ class Segmaker:
self.part = part
if self.part is None:
self.part = util.get_part()
assert self.part, "No part specified."
self.verbose = verbose if verbose is not None else os.getenv(
'VERBOSE', 'N') == 'Y'

View File

@ -17,7 +17,6 @@ def get_db_root():
def get_part():
ret = os.getenv("XRAY_PART", None)
assert ret
return ret