oarepo-runtime 1.5.125__py3-none-any.whl → 1.5.126__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oarepo_runtime/datastreams/writers/service.py +4 -0
- {oarepo_runtime-1.5.125.dist-info → oarepo_runtime-1.5.126.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.125.dist-info → oarepo_runtime-1.5.126.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.125.dist-info → oarepo_runtime-1.5.126.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.125.dist-info → oarepo_runtime-1.5.126.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.125.dist-info → oarepo_runtime-1.5.126.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.125.dist-info → oarepo_runtime-1.5.126.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@ from invenio_access.permissions import system_identity
|
|
2
2
|
from invenio_pidstore.errors import PIDDoesNotExistError
|
3
3
|
from invenio_records_resources.proxies import current_service_registry
|
4
4
|
from invenio_records_resources.services.uow import UnitOfWork
|
5
|
+
from sqlalchemy.exc import NoResultFound
|
5
6
|
|
6
7
|
from ...uow import BulkUnitOfWork
|
7
8
|
from ..types import StreamBatch, StreamEntry, StreamEntryError
|
@@ -57,6 +58,9 @@ class ServiceWriter(BaseWriter):
|
|
57
58
|
return self._service.read(self._identity, id_)
|
58
59
|
except PIDDoesNotExistError:
|
59
60
|
pass
|
61
|
+
except NoResultFound:
|
62
|
+
# vocabularies do not raise a PIDDoesNotExistError, they raise sql exception
|
63
|
+
pass
|
60
64
|
return None
|
61
65
|
|
62
66
|
def _get_stream_entry_id(self, entry: StreamEntry):
|
@@ -42,7 +42,7 @@ oarepo_runtime/datastreams/writers/__init__.py,sha256=PWufWNrixFhXv5wSv3_pzmrimr
|
|
42
42
|
oarepo_runtime/datastreams/writers/attachments_file.py,sha256=kV_IPAWawJ9PX-IfoncmLQXpdTbzRMsJie8uKX1vNp0,3161
|
43
43
|
oarepo_runtime/datastreams/writers/attachments_service.py,sha256=g_tbjUA3YnTE5gP21zlG2kIxneZsn0q95EVjlxB8s1M,4152
|
44
44
|
oarepo_runtime/datastreams/writers/publish.py,sha256=x_ipun8TQiYNvGokVnEppYw9ko1AyrSzHu3D8b3ZWzI,2126
|
45
|
-
oarepo_runtime/datastreams/writers/service.py,sha256=
|
45
|
+
oarepo_runtime/datastreams/writers/service.py,sha256=PAMo0t_d-T4xGcO4VIIVaMOAqj7_tahXo-v-fTqKG8A,6199
|
46
46
|
oarepo_runtime/datastreams/writers/utils.py,sha256=Lk_ZLNeXTLuFEn04lw1-6bJ7duG6kwA8X4wf9c_GiL4,1067
|
47
47
|
oarepo_runtime/datastreams/writers/validation_errors.py,sha256=wOCXdniR6so_4ExpdFYYgBRyENp7_6kVFZM2L-Hy3G8,661
|
48
48
|
oarepo_runtime/datastreams/writers/yaml.py,sha256=XchUJHQ58E2Mfgs8elImXbL38jFtI8Hfoye6yaR0gKI,1482
|
@@ -148,9 +148,9 @@ tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
148
148
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
149
149
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
150
150
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
151
|
-
oarepo_runtime-1.5.
|
152
|
-
oarepo_runtime-1.5.
|
153
|
-
oarepo_runtime-1.5.
|
154
|
-
oarepo_runtime-1.5.
|
155
|
-
oarepo_runtime-1.5.
|
156
|
-
oarepo_runtime-1.5.
|
151
|
+
oarepo_runtime-1.5.126.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
152
|
+
oarepo_runtime-1.5.126.dist-info/METADATA,sha256=GURVSenQMBQuWZxCEi_eZgtoW8jNgbOXDvMKBc8EK-0,4721
|
153
|
+
oarepo_runtime-1.5.126.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
154
|
+
oarepo_runtime-1.5.126.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
155
|
+
oarepo_runtime-1.5.126.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
156
|
+
oarepo_runtime-1.5.126.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|