Skip to content

Commit

Permalink
fix(api): position map sorting
Browse files Browse the repository at this point in the history
#3981

TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed Sep 3, 2024
1 parent 4b262ca commit e2c2061
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 e2c2061

Please sign in to comment.