diff --git a/util/slconfig.py b/util/slconfig.py index 80647275..139161ac 100644 --- a/util/slconfig.py +++ b/util/slconfig.py @@ -314,7 +314,11 @@ def _format_dict(input_dict, outest_level=False): based_on_style='pep8', blank_line_before_nested_class_or_def=True, split_before_expression_after_opening_paren=True) - text, _ = FormatCode(text, style_config=yapf_style, verify=True) + try: + text, _ = FormatCode(text, style_config=yapf_style, verify=True) + except TypeError: + # yapf >= 0.32 removed the 'verify' parameter + text, _ = FormatCode(text, style_config=yapf_style) return text