Skip to content

Commit aa51cbb

Browse files
committed
WIP: rename error class
1 parent 82108dd commit aa51cbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

invenio_rdm_records/services/github/metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import yaml
1313
from flask import current_app
1414
from invenio_i18n import _
15-
from invenio_vcs.errors import CustomGitHubMetadataError
15+
from invenio_vcs.errors import CustomVCSMetadataError
1616
from invenio_vcs.generic_models import GenericContributor
1717
from marshmallow import Schema, ValidationError
1818
from mistune import markdown
@@ -145,8 +145,8 @@ def citation_metadata(self):
145145
# Load metadata from citation file and serialize it
146146
return self.load_citation_metadata(data)
147147
except ValidationError as e:
148-
# Wrap the error into CustomGitHubMetadataError() so it can be handled upstream
149-
raise CustomGitHubMetadataError(file=citation_file_path, message=e.messages)
148+
# Wrap the error into CustomVCSMetadataError() so it can be handled upstream
149+
raise CustomVCSMetadataError(file=citation_file_path, message=e.messages)
150150

151151
@property
152152
def extra_metadata(self):

0 commit comments

Comments
 (0)