From 9321573c23edac6b8115a6baf467a9f0300bdac3 Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 22 Dec 2014 22:14:23 +0100 Subject: [PATCH] Fixed a typeclass call. --- src/typeclasses/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typeclasses/models.py b/src/typeclasses/models.py index 21f298ddc..284373f8d 100644 --- a/src/typeclasses/models.py +++ b/src/typeclasses/models.py @@ -1263,7 +1263,7 @@ class TypedObject(SharedMemoryModel): _SA(self, "typeclass_path", new_typeclass.strip()) # this will automatically use a default class if # there is an error with the given typeclass. - new_typeclass = self.typeclass + new_typeclass = self if self.typeclass_path != new_typeclass.path and no_default: # something went wrong; the default was loaded instead, # and we don't allow that; instead we return to previous.