diff --git a/openflexure_microscope/rescue/error_sources.py b/openflexure_microscope/rescue/error_sources.py index 13cda56f..49f36826 100644 --- a/openflexure_microscope/rescue/error_sources.py +++ b/openflexure_microscope/rescue/error_sources.py @@ -11,7 +11,10 @@ class bcolors: class Source: def __init__(self, message): - self._message = message + if isinstance(message, tuple): + self._message = " ".join(message) + else: + self._message = message @property def message(self): @@ -27,4 +30,4 @@ class WarningSource(Source): class ErrorSource(Source): @property def message(self): - return bcolors.FAIL + self._message + bcolors.ENDC \ No newline at end of file + return bcolors.FAIL + self._message + bcolors.ENDC