mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix logs. Use dict.pop instead of del. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -78,10 +78,13 @@ class RAGFlowMinio(object):
|
||||
|
||||
def obj_exist(self, bucket, fnm):
|
||||
try:
|
||||
if self.conn.stat_object(bucket, fnm):return True
|
||||
if not self.conn.bucket_exists(bucket):
|
||||
return False
|
||||
if self.conn.stat_object(bucket, fnm):
|
||||
return True
|
||||
return False
|
||||
except Exception:
|
||||
logging.exception(f"Fail put {bucket}/{fnm}:")
|
||||
logging.exception(f"RAGFlowMinio.obj_exist {bucket}/{fnm} got exception:")
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user