From cf88984a0975b178e696fc2dbc93fc629e1b3c34 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 27 Jul 2026 10:55:20 +0800 Subject: [PATCH] fix: skip comment lines in load_path.py paths parsing Lines starting with # were parsed as path+role, causing '#'.split() = ['#','sage_datamart'], where 'sage_datamart' isn't 'any'/'logined'/'anonymous' and has no '.', crashing add_roles_perm at role.split('.') --- load_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load_path.py b/load_path.py index 3a15161a..fe601244 100644 --- a/load_path.py +++ b/load_path.py @@ -1531,7 +1531,7 @@ async def main(): cnt = 0 async with db.sqlorContext('sage') as sor: for l in paths.split('\n'): - if not l: + if not l or l.startswith('#'): continue parts = l.split() path = parts[0]