File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444s3 = session .resource (service_name = 's3' , endpoint_url = app .config ['S3_URL' ]).meta .client
4545try :
4646 s3 .create_bucket (Bucket = app .config ['S3_BUCKET_NAME' ])
47- except BucketAlreadyExists :
47+ except s3 . exceptions . BucketAlreadyExists :
4848 1 + 1
4949
5050# Load Applications Blueprint
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ def before_request(func):
1313 @wraps (func )
1414 def wrapped_function (* args , ** kwargs ):
1515 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' )
1818 .rstrip ()
1919 )
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' , '' ))
2222 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' , []),
2727 }
28- kwargs [" info" ] = info
28+ kwargs [' info' ] = info
2929 return func (* args , ** kwargs )
3030
3131 return wrapped_function
You can’t perform that action at this time.
0 commit comments