浏览代码

Update azure_sas_conn.py - fixing container_url typo (#2740)

### What problem does this PR solve?

Fixes #2739

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Jake Stride 1年前
父节点
当前提交
d92acdcf1d
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      rag/utils/azure_sas_conn.py

+ 3
- 3
rag/utils/azure_sas_conn.py 查看文件

@@ -23,10 +23,10 @@ class RAGFlowAzureSasBlob(object):
pass

try:
self.conn = ContainerClient.from_container_url(self.account_url + "?" + self.sas_token)
self.conn = ContainerClient.from_container_url(self.container_url + "?" + self.sas_token)
except Exception as e:
azure_logger.error(
"Fail to connect %s " % self.account_url + str(e))
"Fail to connect %s " % self.container_url + str(e))

def __close__(self):
del self.conn
@@ -77,4 +77,4 @@ class RAGFlowAzureSasBlob(object):
azure_logger.error(f"fail get {bucket}/{fnm}: " + str(e))
self.__open__()
time.sleep(1)
return
return

正在加载...
取消
保存