From 4259ad5bf1680896090290e7327b49a053a8447b Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 12 Jul 2013 15:52:20 -0500 Subject: [PATCH] Fix the last bit preventing all the unit tests from passing in media types->plugins The last commit was also small, so Jeff Moe gets... two! Two sponsored commits! Ah ah ah. --- mediagoblin/db/mixin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index 26e41a3b..ee8525c2 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -205,7 +205,8 @@ class MediaEntryMixin(GenerateSlugMixin): """ manager = hook_handle('get_media_manager', self.media_type) if manager: - return manager + return manager(self) + # Not found? Then raise an error raise FileTypeNotSupported( "MediaManager not in enabled types. Check media_type plugins are"