Skip to content

Commit 295b9fb

Browse files
Merge pull request #371 from iolanta-tech/avoid-pyld-crash
Avoid `pyld` crash
2 parents dfd8fe9 + c5a0187 commit 295b9fb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

iolanta/sparqlspace/processor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ def load( # noqa: C901, WPS210, WPS212, WPS213, WPS231
607607
except HTTPError as http_error:
608608
self.logger.warning(f"{source} | HTTP error: {http_error}")
609609
return Loaded()
610+
except TypeError as type_error:
611+
self.logger.error(f"{source} | JSON-LD type error: {type_error}")
612+
return Loaded()
610613

611614
try:
612615
quads = list(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "iolanta"
3-
version = "2.1.21"
3+
version = "2.1.22"
44
description = "Semantic Web browser"
55
authors = ["Anatoly Scherbakov <altaisoft@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)