Skip to content

Commit 47eb6c7

Browse files
committed
correct check if instrument is fetched
Signed-off-by: Jose Borreguero <[email protected]>
1 parent f75ccd0 commit 47eb6c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/livereduce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def __getSetInstrument(self, instrument: str) -> InstrumentInfo:
217217

218218
if instrument is None:
219219
self.logger.info("Using default instrument")
220-
instrument = ConfigService.getInstrument().strip()
221-
if len(instrument) == 0:
220+
instrument = ConfigService.getInstrument()
221+
if len(instrument.name().strip()) == 0:
222222
raise RuntimeError("No instrument found in the configuration or Mantid.user.properties files")
223223
else:
224224
return instrument

0 commit comments

Comments
 (0)