[minor] added Error if phase can not be identified

This commit is contained in:
Marcel Paffrath 2018-03-28 10:23:54 +02:00
parent 4002ccfd1a
commit 8f5292b957

View File

@ -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