From: Christopher Allan Webber Date: Mon, 12 Aug 2013 15:48:07 +0000 (-0500) Subject: Fixing the MediaProcessor context manager so it actually, you know, works :) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a85bf985db67482a56e8987e28a6139b5e087fd;p=mediagoblin.git Fixing the MediaProcessor context manager so it actually, you know, works :) This commit sponsored by Mikiya Okuno. Thank you! --- diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index bfb78780..9493091b 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -123,6 +123,7 @@ class MediaProcessor(object): def __enter__(self): self.workbench = mgg.workbench_manager.create() + return self def __exit__(self, *args): self.workbench.destroy()