1. biolab
  2. Untitled project
  3. orange-bioinformatics

Commits

Aleš Erjavec  committed a5c02ae

Include class name in the warning.

  • Participants
  • Parent commits 9226929
  • Branches default

Comments (0)

Files changed (1)

File obiKEGG2/entry/__init__.py

View file
             title = field.TITLE
             if title not in registered_fields:
                 import warnings
-                warnings.warn("Nonregisterd field %r" % title)
+                warnings.warn("Nonregisterd field %r in %r" % \
+                                (title, type(self)))
             title_lower = title.lower()
             if title in multiple_fields:
                 if not hasattr(self, title):