From de76b3a12f6656f4ff125881fe435dd304f0c92a Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 17 Jul 2013 15:29:21 -0400 Subject: [PATCH] CC-5278: Exception in Pypo --- python_apps/pypo/pypofetch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_apps/pypo/pypofetch.py b/python_apps/pypo/pypofetch.py index f30cee258..32b36f134 100644 --- a/python_apps/pypo/pypofetch.py +++ b/python_apps/pypo/pypofetch.py @@ -209,7 +209,8 @@ class PypoFetch(Thread): except Exception, e: self.logger.error(e) finally: - self.telnet_lock.release() + if self.telnet_lock.locked(): + self.telnet_lock.release() """ TODO: This function needs to be way shorter, and refactored :/ - MK