diff --git a/lyrebird_bugit/apis.py b/lyrebird_bugit/apis.py index bfabde0..6442ccc 100644 --- a/lyrebird_bugit/apis.py +++ b/lyrebird_bugit/apis.py @@ -65,7 +65,7 @@ def template(): template_detail = cache.get(draft_filename) template = template_loader.get_template(template_path) - if inspect.getargspec(template.form).args: + if inspect.signature(template.form).parameters: template_detail = template.form({'cache': template_detail}) else: template_detail = template.form() diff --git a/setup.py b/setup.py index 995317f..7761663 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='lyrebird-bugit', - version='1.12.4', + version='1.12.5', packages=['lyrebird_bugit'], url='https://github.com/Meituan-Dianping/lyrebird-bugit', author='HBQA',