BigBrotherBot/big-brother-bot

BF4: Exception in frostbiteClientMessageQueueWorker

Closed this issue · 1 comments

The following error was reported on the forums for B3 v1.10.1:

STDERR 'Exception in thread Client<@2:EA_E134A3C9DA686275C48C4346779512AE|0827695e1130b4f2cdb429d7c30ff1f6:"ZzSonozZ":ZzSonozZ>_messagehandler:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
  File "C:\Python27\lib\threading.py", line 763, in run
  File "c:\jenkins_slave\workspace\B3-1.10-dist-daily\b3\parsers\frostbite2\abstractParser.py", line 1792, in frostbiteClientMessageQueueWorker

AttributeError: 'Bf3Parser' object has no attribute '_settings'

regression introduced with commit a6b9a19 and in particular this change.

at https://github.com/BigBrotherBot/big-brother-bot/blob/release-1.10/b3/parsers/frostbite2/abstractParser.py#L1793 time.sleep(float(self.console._settings.get('message_delay', 1))) should now be:

if hasattr(self.console, 'message_delay'):
    message_delay = self.console.message_delay
else:
    message_delay = 1
time.sleep(float(self.console.message_delay))