fix the typo to util.load_xxx
This commit is contained in:
parent
aa5437c637
commit
8692309c5b
|
|
@ -126,7 +126,7 @@ import ip2region.searcher as xdb
|
|||
|
||||
# 1、从 db_path 加载整个 xdb 到内存。
|
||||
try:
|
||||
c_buffer = xdb.load_content_from_file(db_path)
|
||||
c_buffer = util.load_content_from_file(db_path)
|
||||
except Exception as e:
|
||||
print(f"failed to load content from {db_path}: {str(e)}")
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue