1. Éric Lemoine
  2. sqlalchemy

Commits

Mike Bayer  committed a5032d5

format string for no primary mapper defined error, [ticket:1774]

  • Participants
  • Parent commits 15e13d4
  • Branches default

Comments (0)

Files changed (1)

File lib/sqlalchemy/orm/mapper.py

View file
                 raise sa_exc.InvalidRequestError(
                     "Class %s has no primary mapper configured.  Configure "
                     "a primary mapper first before setting up a non primary "
-                    "Mapper.")
+                    "Mapper." % self.class_)
             self.class_manager = manager
             _mapper_registry[self] = True
             return