Skip to content

Commit

Permalink
Update azure_sas_conn.py - fixing container_url typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jstride authored Oct 8, 2024
1 parent b3b5468 commit 71443ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rag/utils/azure_sas_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def __open__(self):
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
Expand Down Expand Up @@ -77,4 +77,4 @@ def get_presigned_url(self, bucket, fnm, expires):
azure_logger.error(f"fail get {bucket}/{fnm}: " + str(e))
self.__open__()
time.sleep(1)
return
return

0 comments on commit 71443ef

Please sign in to comment.