From fdba976ba890b65b92ec82067f671f30a38db697 Mon Sep 17 00:00:00 2001 From: juan0tron Date: Sat, 29 Feb 2020 12:28:42 -0800 Subject: [PATCH] Remove "handler" arg from register_embed_type in Wagtail >= 2.5 --- wagtailmedia/wagtail_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtailmedia/wagtail_hooks.py b/wagtailmedia/wagtail_hooks.py index 222399f9..fe013da1 100644 --- a/wagtailmedia/wagtail_hooks.py +++ b/wagtailmedia/wagtail_hooks.py @@ -115,7 +115,7 @@ def register_custom_media_feature(features): if WAGTAIL_VERSION < (2, 5): features.register_embed_type(embed_type='media', handler=MediaEmbedHandler) else: - features.register_embed_type(handler=MediaEmbedHandler) + features.register_embed_type(MediaEmbedHandler) feature_name = 'wagtailmedia'