File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 44
44
s3 = session .resource (service_name = 's3' , endpoint_url = app .config ['S3_URL' ]).meta .client
45
45
try :
46
46
s3 .create_bucket (Bucket = app .config ['S3_BUCKET_NAME' ])
47
- except BucketAlreadyExists :
47
+ except s3 . exceptions . BucketAlreadyExists :
48
48
1 + 1
49
49
50
50
# Load Applications Blueprint
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ def before_request(func):
13
13
@wraps (func )
14
14
def wrapped_function (* args , ** kwargs ):
15
15
git_revision = (
16
- subprocess .check_output ([" git" , " rev-parse" , " --short" , " HEAD" ])
17
- .decode (" utf-8" )
16
+ subprocess .check_output ([' git' , ' rev-parse' , ' --short' , ' HEAD' ])
17
+ .decode (' utf-8' )
18
18
.rstrip ()
19
19
)
20
- uuid = str (session [" userinfo" ].get (" sub" , "" ))
21
- uid = str (session [" userinfo" ].get (" preferred_username" , "" ))
20
+ uuid = str (session [' userinfo' ].get (' sub' , '' ))
21
+ uid = str (session [' userinfo' ].get (' preferred_username' , '' ))
22
22
info = {
23
- " git_revision" : git_revision ,
24
- " uuid" : uuid ,
25
- " uid" : uid ,
26
- " group_list" : session [" userinfo" ].get (" groups" , []),
23
+ ' git_revision' : git_revision ,
24
+ ' uuid' : uuid ,
25
+ ' uid' : uid ,
26
+ ' group_list' : session [' userinfo' ].get (' groups' , []),
27
27
}
28
- kwargs [" info" ] = info
28
+ kwargs [' info' ] = info
29
29
return func (* args , ** kwargs )
30
30
31
31
return wrapped_function
You can’t perform that action at this time.
0 commit comments