X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/07096ee18c78a330205e0f0a656dee1378ceb8c2..05333a6f2d2ea77a602612c3aaff039dc7b97200:/catalogue/models.py diff --git a/catalogue/models.py b/catalogue/models.py index 0c3a54c..ee0222c 100644 --- a/catalogue/models.py +++ b/catalogue/models.py @@ -35,7 +35,7 @@ class Section(models.Model): lessons = [Lesson.objects.get(slug=part.slug) for part in wldoc.book_info.parts] except Lesson.DoesNotExist, e: - raise cls.IncompleteError(e) + raise cls.IncompleteError(part.slug) slug = wldoc.book_info.url.slug try: