Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Mar 18, 2022
1 parent a835e9c commit d4338b9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions superset/explore/form_data/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ def post(self) -> Response:
return self.response(403, message=str(ex))
except (ChartNotFoundError, DatasetNotFoundError) as ex:
return self.response(404, message=str(ex))
except Exception as ex:
raise ex

@expose("/form_data/<string:key>", methods=["PUT"])
@protect()
Expand Down
2 changes: 1 addition & 1 deletion superset/key_value/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import pickle

from datetime import datetime, timedelta
from hashlib import md5
from typing import Any, Dict, List, Optional
Expand Down
4 changes: 1 addition & 3 deletions superset/utils/cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
# specific language governing permissions and limitations
# under the License.
import logging
import math

from flask import Flask
from flask_babel import gettext as _
from flask_caching import Cache

logger = logging.getLogger(__name__)
Expand All @@ -43,7 +41,7 @@ def _init_cache(
if required and cache_type in (None, "SupersetCache"):
if cache_type is None:
logger.warning(
"Falling back to built-in key-value cache for following "
"Falling back to built-in key-value cache for the following "
"cache: `%s`. It is recommended to use `RedisCache`, "
"`MemcachedCache` or another dedicated caching backend for "
"production deployments",
Expand Down

0 comments on commit d4338b9

Please sign in to comment.