Skip to content

Commit a95c18f

Browse files
authored
Merge pull request #205 from elfisworking/master
fix: load_policy_line function load error
2 parents 64fd52c + bca7eed commit a95c18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

casbin/persist/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def load_policy_line(line, model):
77
if line[:1] == "#":
88
return
99

10-
tokens = line.split(", ")
10+
tokens = [token.strip() for token in line.split(",")]
1111
key = tokens[0]
1212
sec = key[0]
1313

0 commit comments

Comments
 (0)