Explorar o código

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

Tomas Coufal %!s(int64=5) %!d(string=hai) anos
pai
achega
14dc72c4e0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: