Skip to content

Commit 69c6893

Browse files
authored
fix: Remove now failing and useless assert (#56)
This stupid assert now makes do_clear() fail with viur-core 3.8, as viur-core 3.8 implements `__bool__` on SkeletonInstance, which returns False in this case. Anyway, the entire assert makes no sense, as self.import_skel() by its typing definition always returns a SkeletonInstance. In all other cases where self.import_skel() is used, there isn't such a useless, stupid and now breaking assert.
1 parent 8cfa9ba commit 69c6893

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/viur/toolkit/importer/importable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,6 @@ def do_clear(
708708

709709
# Get skeleton
710710
skel = self.import_skel(skelType=kwargs.get("skelType"))
711-
assert skel
712711

713712
q = skel.all()
714713

src/viur/toolkit/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This will mark it as a pre-release as well on PyPI.
44
# See CONTRIBUTING.md for further information. # TODO: tbd
55

6-
__version__ = "0.6.0"
6+
__version__ = "0.6.1"
77

88
assert __version__.count(".") >= 2 and "".join(__version__.split(".", 3)[:3]).isdigit(), \
99
"Semantic __version__ expected!"

0 commit comments

Comments
 (0)