Fixed typo in error checking in MGXS Library domains setter per comment by @nelsonag

This commit is contained in:
Will Boyd 2015-11-18 11:57:36 -05:00
parent cfe1f1dfcd
commit 9e4cd5ae2b

View file

@ -255,7 +255,8 @@ class Library(object):
# Check that each domain can be found in the geometry
for domain in domains:
if domain not in all_domains:
msg = 'Domain "{}" could not be found in the geometry'
msg = 'Domain "{}" could not be found in the ' \
'geometry.'.format(domain)
raise ValueError(msg)
self._domains = domains