Skip to content

Commit

Permalink
set require cachetools>=3.1.1,<6.0 in setup.py (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-smile authored Jul 1, 2023
1 parent 2712efd commit 5295f94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iam/contrib/django/dispatcher/dispatchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _dispatch(self, request):
data = json.loads(request.body)
except Exception:
logger.error("resource request(%s) failed with invalid body: %s", request_id, request.body)
return fail_response(400, "reqeust body is not a valid json", request_id)
return fail_response(400, "request body is not a valid json", request_id)

# check basic params
method = data.get("method")
Expand Down
2 changes: 1 addition & 1 deletion iam/contrib/iam_migration/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def migrate(self):
do_migrate.enable_use_apigateway()
iam_host = getattr(settings, "BK_IAM_APIGATEWAY_URL", "")
if iam_host == "":
raise exceptions.MigrationFailError("settings.BK_IAM_APIGATEWAY_URL should be setted")
raise exceptions.MigrationFailError("settings.BK_IAM_APIGATEWAY_URL should be set")
else:
iam_host = settings.BK_IAM_INNER_HOST

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

requires = [
"six>=1.11.0",
"cachetools==3.1.1",
"cachetools>=3.1.1,<6.0",
"requests",
"curlify==2.2.1",
]
Expand Down

0 comments on commit 5295f94

Please sign in to comment.