From 8f5292b957757025fbfc97236a4b0242f6076b28 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 28 Mar 2018 10:23:54 +0200 Subject: [PATCH] [minor] added Error if phase can not be identified --- pylot/core/util/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index b2cbd57a..2c93286e 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -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