| 1 | In case of 'AttributeError', 'value' is None, so do not try to |
| 2 | access it. |
| 3 | Submitted upstream. |
| 4 | |
| 5 | |
| 6 | |
| 7 | class PrettyBugz(Bugz): |
| 8 | for field, name in FIELDS + MORE_FIELDS: |
| 9 | try: |
| 10 | value = result.find('//%s' % field).text |
| 11 | + print '%-12s: %s' % (name, value.encode(self.enc)) |
| 12 | except AttributeError: |
| 13 | continue |
| 14 | - print '%-12s: %s' % (name, value.encode(self.enc)) |
| 15 | |
| 16 | # Print out the cc'ed people |
| 17 | cced = result.findall('.//cc') |