From aef23a0fc4596af46f51784cabf52bbdf7b033d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Thu, 9 Jul 2020 18:30:35 +0200 Subject: [PATCH] fix stress tests --- stress_tests/settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stress_tests/settings.py b/stress_tests/settings.py index e0cc6b8..57424f4 100644 --- a/stress_tests/settings.py +++ b/stress_tests/settings.py @@ -27,8 +27,10 @@ class LogFramesToFile: self.file.close() def on_frame(self, timestamp, frame, direction): - self.file.write('%s %s %s\n' % (timestamp, frame, direction)) - self.file.flush() - + try: + self.file.write('%s %s %s\n' % (timestamp, frame, direction)) + self.file.flush() + except ValueError: + pass queue_names = (str(v) for v in range(100)) -- GitLab