Skip to content

Commit 7f4644a

Browse files
committed
Bump Version 0.5.32
1 parent a6cb2dc commit 7f4644a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "superduper-framework"
77
description = "🔮 Bring AI to your favourite database 🔮"
88
readme = "README.md"
9-
version = '0.5.31'
9+
version = '0.5.32'
1010
license = {file = "LICENSE"}
1111
maintainers = [{name = "superduper.io, Inc.", email = "[email protected]"}]
1212
keywords = [

superduper/rest/build.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)