Skip to content

Commit

Permalink
fix(api): Code-Based Extension cause error on position map sorting (l…
Browse files Browse the repository at this point in the history
…anggenius#7934)

Signed-off-by: 陳鈞 <jim60105@gmail.com>
  • Loading branch information
jim60105 committed Sep 4, 2024
1 parent c5bdf08 commit 80d14c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/extension/extensible.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def scan_extensions(cls):
if os.path.exists(builtin_file_path):
with open(builtin_file_path, encoding='utf-8') as f:
position = int(f.read().strip())
position_map[extension_name] = position
position_map[extension_name] = position

if (extension_name + '.py') not in file_names:
logging.warning(f"Missing {extension_name}.py file in {subdir_path}, Skip.")
Expand Down

0 comments on commit 80d14c9

Please sign in to comment.