chore(pylint): Reenable raise-missing-from check (#16266)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2021-08-16 15:26:10 -07:00
committed by GitHub
parent 36bc7b0b80
commit be7065faf8
80 changed files with 216 additions and 211 deletions

View File

@@ -48,7 +48,7 @@ class RefreshDatasetCommand(BaseCommand):
return self._model
except Exception as ex:
logger.exception(ex)
raise DatasetRefreshFailedError()
raise DatasetRefreshFailedError() from ex
raise DatasetRefreshFailedError()
def validate(self) -> None:
@@ -59,5 +59,5 @@ class RefreshDatasetCommand(BaseCommand):
# Check ownership
try:
check_ownership(self._model)
except SupersetSecurityException:
raise DatasetForbiddenError()
except SupersetSecurityException as ex:
raise DatasetForbiddenError() from ex