From 4754596936fd3414402f2e6e6881c775978f8aeb Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 8 Sep 2025 10:27:50 +0200 Subject: [PATCH] Autogenerate Python code without useless semicolons * #788 --- other/templates/py/stream.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/templates/py/stream.j2 b/other/templates/py/stream.j2 index 33f258a1..f05ad1ef 100644 --- a/other/templates/py/stream.j2 +++ b/other/templates/py/stream.j2 @@ -62,7 +62,7 @@ async def {{ name.lower_snake_case }}(self{% for param in params %}, {{ param.na raise {{ plugin_name.upper_camel_case }}Error(result, "{{ name.lower_snake_case }}()"{% for param in params %}, {{ param.name.lower_snake_case }}{% endfor %}) if result.result == {{ plugin_name.upper_camel_case }}Result.Result.SUCCESS: - {{ name.lower_snake_case }}_stream.cancel(); + {{ name.lower_snake_case }}_stream.cancel() return {% endif %}