소스 검색

fix(boto): S3 region parser references unassigned variable when S3 is colocated

Tomas Coufal 5 년 전
부모
커밋
14dc72c4e0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      desktop/core/ext-py/boto-2.46.1/boto/auth.py

+ 1 - 0
desktop/core/ext-py/boto-2.46.1/boto/auth.py

@@ -657,6 +657,7 @@ class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
         # - bukkit.s3.cn-north-1.amazonaws.com.cn - (Vhosted Beijing region)
         parts = self.split_host_parts(host)
 
+        region_name = ''
         if self.region_name is not None:
             region_name = self.region_name
         else: