Changeset 1551:a5c02ae75573 in orange-bioinformatics


Ignore:
Timestamp:
02/03/12 15:15:22 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Include class name in the warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiKEGG2/entry/__init__.py

    r1532 r1551  
    119119            if title not in registered_fields: 
    120120                import warnings 
    121                 warnings.warn("Nonregisterd field %r" % title) 
     121                warnings.warn("Nonregisterd field %r in %r" % \ 
     122                                (title, type(self))) 
    122123            title_lower = title.lower() 
    123124            if title in multiple_fields: 
Note: See TracChangeset for help on using the changeset viewer.