Skip to content

Commit

Permalink
Update azure_sas_conn.py - fixing container_url typo (#2740)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Fixes #2739

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
jstride authored Oct 8, 2024
1 parent 2e33ed3 commit d92acdc
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 d92acdc

Please sign in to comment.