File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66name = " superduper-framework"
77description = " 🔮 Bring AI to your favourite database 🔮"
88readme = " README.md"
9- version = ' 0.5.31 '
9+ version = ' 0.5.32 '
1010license = {file = " LICENSE" }
1111maintainers = [{
name =
" superduper.io, Inc." ,
email =
" [email protected] " }]
1212keywords = [
Original file line number Diff line number Diff line change @@ -97,27 +97,27 @@ def _check_secret_health(db):
9797 )
9898
9999 try :
100- check_secrets ()
101- except IncorrectSecretException as e :
100+ if CFG .data_backend == 'snowflake://' :
101+ load_plugin ('snowflake' ).check_secret_updates (db )
102+ except Exception as e :
102103 logging .error (traceback .format_exc ())
103104 raise HTTPException (
104- status_code = HTTP_401_UNAUTHORIZED ,
105+ status_code = HTTP_409_CONFLICT ,
105106 detail = str (e ),
106107 )
107- except Exception as e :
108+
109+ try :
110+ check_secrets ()
111+ except IncorrectSecretException as e :
108112 logging .error (traceback .format_exc ())
109113 raise HTTPException (
110- status_code = HTTP_500_INTERNAL_SERVER_ERROR ,
114+ status_code = HTTP_401_UNAUTHORIZED ,
111115 detail = str (e ),
112116 )
113-
114- try :
115- if CFG .data_backend == 'snowflake://' :
116- load_plugin ('snowflake' ).check_secret_updates (db )
117117 except Exception as e :
118118 logging .error (traceback .format_exc ())
119119 raise HTTPException (
120- status_code = HTTP_409_CONFLICT ,
120+ status_code = HTTP_500_INTERNAL_SERVER_ERROR ,
121121 detail = str (e ),
122122 )
123123
You can’t perform that action at this time.
0 commit comments