--- a/eric6/Utilities/BackgroundClient.py Wed Jun 17 17:12:21 2020 +0200 +++ b/eric6/Utilities/BackgroundClient.py Wed Jun 17 20:18:54 2020 +0200 @@ -144,6 +144,8 @@ def run(self): """ Public method implementing the main loop of the client. + + @exception RuntimeError raised if hashes don't match """ try: while True: @@ -159,8 +161,9 @@ if messageType != b"JOB ": continue - assert adler32(packedData) & 0xffffffff == datahash, \ - 'Hashes not equal' + if adler32(packedData) & 0xffffffff != datahash: + raise RuntimeError('Hashes not equal') + if sys.version_info[0] >= 3: packedData = packedData.decode('utf-8')