mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: Refactor command exceptions (#24117)
This commit is contained in:
@@ -128,6 +128,4 @@ class DuplicateDatasetCommand(CreateMixin, BaseCommand):
|
||||
exceptions.append(ex)
|
||||
|
||||
if exceptions:
|
||||
exception = DatasetInvalidError()
|
||||
exception.add_list(exceptions)
|
||||
raise exception
|
||||
raise DatasetInvalidError(exceptions=exceptions)
|
||||
|
||||
Reference in New Issue
Block a user