From 51eb0267d901bafcc90879dadbc2b8616ecdc4f5 Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Tue, 10 Jul 2012 17:53:37 +0200 Subject: Minor improvements to the processing panel - It is now possible to actually see what's processing, due to a bug fix where __getitem__ was called on the db model. - Removed DEPRECATED message from the docstring, it wasn't true. --- mediagoblin/db/mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin/db') diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index fe6dc796..9f9b8786 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -116,8 +116,8 @@ class MediaEntryMixin(object): """ Get the exception that's appropriate for this error """ - if self['fail_error']: - return common.import_component(self['fail_error']) + if self.fail_error: + return common.import_component(self.fail_error) def get_license_data(self): """Return license dict for requested license""" -- cgit v1.2.3