Changeset 1077

Show
Ignore:
Timestamp:
04/03/08 02:46:18
Author:
domlowe
Message:

contact.getchildren() returns empty list, not None so changed statement - although ContactMetadata? does not throw exception anymore if info is missing anyway

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/branches/wcstemp/owslib/wms.py

    r1076 r1077  
    235235        ## sometimes there is a contact block that is empty, so make 
    236236        ## sure there are children to parse 
    237         if contact is not None and contact.getchildren() is not None
     237        if contact is not None and contact.getchildren() != []
    238238            self.contact = ContactMetadata(contact) 
    239239        else: