From 1cafbc1521a3d16ddbd74d2b26ca74b2e8a18d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Tue, 5 Nov 2013 19:13:08 +0100 Subject: [PATCH] check for self.progress None value before calling update --- pysstv/examples/gimp-plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pysstv/examples/gimp-plugin.py b/pysstv/examples/gimp-plugin.py index 519ee4f..0769308 100755 --- a/pysstv/examples/gimp-plugin.py +++ b/pysstv/examples/gimp-plugin.py @@ -58,7 +58,8 @@ class Transmitter(object): self.audio_thread.start() elif self.audio_thread is not None: self.audio_thread.stop() - self.progress.update_image() + if self.progress is not None: + self.progress.update_image() def audio_thread_ended(self): self.tx_enabled.set(0)