[minor] added Error if phase can not be identified
This commit is contained in:
parent
4002ccfd1a
commit
8f5292b957
@ -1152,6 +1152,9 @@ def loopIdentifyPhase(phase):
|
||||
"""
|
||||
from pylot.core.util.defaults import ALTSUFFIX
|
||||
|
||||
if phase == None:
|
||||
raise NameError('Can not identify phase that is None')
|
||||
|
||||
phase_copy = phase
|
||||
while not identifyPhase(phase_copy):
|
||||
identified = False
|
||||
|
Loading…
Reference in New Issue
Block a user