From 527ec23c20164736203eb5a7e3109368c9629aed Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 11 Jan 2022 16:58:07 +0100 Subject: [PATCH] Revert reading non-existent flag vectors from None to [] --- compiler/api/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index c173a931..192d6a67 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -447,7 +447,7 @@ def start(format: bool = False): ) read_types += "\n " - read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else None\n ".format( + read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else []\n ".format( arg_name, f", {sub_type.title()}" if sub_type in CORE_TYPES else "", index ) else: