diff --git a/qcodes/utils/multiprocessing.py b/qcodes/utils/multiprocessing.py index 1c2fbcadd899..931581101d10 100644 --- a/qcodes/utils/multiprocessing.py +++ b/qcodes/utils/multiprocessing.py @@ -305,7 +305,7 @@ def _check_for_errors(self, expect_error=False, query=None): def _check_response(self, timeout, query=None): res = self._response_queue.get(timeout=timeout) - if res == SERVER_ERR: + if res is SERVER_ERR: # TODO: I think the way we're doing this now, I could get rid of # _error_queue completely and just have errors and regular # responses labeled differently in _response_queue