From 745591cb8b3f800b1eaad51528b235cc3d9c6703 Mon Sep 17 00:00:00 2001 From: Shane Frischkorn Date: Wed, 10 Jul 2013 11:16:15 +1000 Subject: [PATCH] fixed bug calling non-existant logger --- libhandbrake.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libhandbrake.py b/libhandbrake.py index c32e940..571a951 100644 --- a/libhandbrake.py +++ b/libhandbrake.py @@ -27,7 +27,9 @@ class Encoder: self.handbrakeCommand[3] = input self.handbrakeCommand[5] = output - logger.debug("Handbrake command is: {0}".format(self.handbrakeCommand)) + if logger: + logger.debug("Handbrake command is: {0}".format(self.handbrakeCommand)) + process = subprocess.Popen(self.handbrakeCommand) if waitForCompletion: