Jake Stride
commited on
Commit
·
7b1a8ac
1
Parent(s):
81ddd1c
Update azure_sas_conn.py - fixing container_url typo (#2740)
Browse files### What problem does this PR solve?
Fixes #2739
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
rag/utils/azure_sas_conn.py
CHANGED
@@ -23,10 +23,10 @@ class RAGFlowAzureSasBlob(object):
|
|
23 |
pass
|
24 |
|
25 |
try:
|
26 |
-
self.conn = ContainerClient.from_container_url(self.
|
27 |
except Exception as e:
|
28 |
azure_logger.error(
|
29 |
-
"Fail to connect %s " % self.
|
30 |
|
31 |
def __close__(self):
|
32 |
del self.conn
|
@@ -77,4 +77,4 @@ class RAGFlowAzureSasBlob(object):
|
|
77 |
azure_logger.error(f"fail get {bucket}/{fnm}: " + str(e))
|
78 |
self.__open__()
|
79 |
time.sleep(1)
|
80 |
-
return
|
|
|
23 |
pass
|
24 |
|
25 |
try:
|
26 |
+
self.conn = ContainerClient.from_container_url(self.container_url + "?" + self.sas_token)
|
27 |
except Exception as e:
|
28 |
azure_logger.error(
|
29 |
+
"Fail to connect %s " % self.container_url + str(e))
|
30 |
|
31 |
def __close__(self):
|
32 |
del self.conn
|
|
|
77 |
azure_logger.error(f"fail get {bucket}/{fnm}: " + str(e))
|
78 |
self.__open__()
|
79 |
time.sleep(1)
|
80 |
+
return
|