Skip to content

Commit 424ddbc

Browse files
author
Oleksandr Bazarnov
committed
formatted, removed old implementation
1 parent a0bc96e commit 424ddbc

File tree

4 files changed

+15
-271
lines changed

4 files changed

+15
-271
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
4+
5+
6+
class ManifestMigrationException(Exception):
7+
"""
8+
Raised when a migration error occurs in the manifest.
9+
"""
10+
11+
def __init__(self, message: str) -> None:
12+
super().__init__(f"Failed to migrate the manifest: {message}")

airbyte_cdk/sources/declarative/migrations/manifest/migration_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
import copy
66
from typing import Type
77

8+
from airbyte_cdk.sources.declarative.migrations.manifest.exceptions import (
9+
ManifestMigrationException,
10+
)
811
from airbyte_cdk.sources.declarative.migrations.manifest.manifest_migration import (
912
ManifestMigration,
1013
ManifestType,
1114
)
1215
from airbyte_cdk.sources.declarative.migrations.manifest.migrations_registry import (
1316
migrations_registry,
1417
)
15-
from airbyte_cdk.sources.declarative.parsers.custom_exceptions import (
16-
ManifestMigrationException,
17-
)
1818

1919

2020
class ManifestMigrationHandler:

airbyte_cdk/sources/declarative/parsers/custom_exceptions.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,3 @@ class ManifestNormalizationException(Exception):
2828

2929
def __init__(self, message: str) -> None:
3030
super().__init__(f"Failed to deduplicate manifest: {message}")
31-
32-
33-
class ManifestMigrationException(Exception):
34-
"""
35-
Raised when a migration error occurs in the manifest.
36-
"""
37-
38-
def __init__(self, message: str) -> None:
39-
super().__init__(f"Failed to migrate the manifest: {message}")

airbyte_cdk/sources/declarative/parsers/manifest_migration_handler.py

Lines changed: 0 additions & 259 deletions
This file was deleted.

0 commit comments

Comments
 (0)