fix: changes a pylint check in dashboard module (#10978)

* Removed not needed disabled pylint rules from `set_dash_metadata`:
- `disable=too-many-locals`,
- `too-many-branches`,
- `too-many-statements`

* Changed broad exception to KeyError.

* Reverted broad_exception in get_col_type in utils
This commit is contained in:
Kasia Kucharczyk 2020-09-23 19:26:22 +02:00 committed by GitHub
parent 345fe07d64
commit a26f29e7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class DashboardDAO(BaseDAO):
raise ex
@staticmethod
def set_dash_metadata( # pylint: disable=too-many-locals,too-many-branches,too-many-statements
def set_dash_metadata(
dashboard: Dashboard,
data: Dict[Any, Any],
old_to_new_slice_ids: Optional[Dict[int, int]] = None,