@@ -631,17 +631,18 @@ def _shouldAnnounceChangeInChannel(self, diff, channel):
631
631
##############################
632
632
633
633
def _field_text_to_string (self , obj , field , channel ):
634
- field_lookup_list = self .plugin .registryValue ('fieldLookupList' , channel )
635
-
636
- for field_lookup in field_lookup_list :
637
- # Get current field, class and classname in the list.
638
- (lfield , lclass , lclassfield ) = field_lookup .split ('.' )
639
- # See if we have found our field.
640
- if field .lower () == lfield :
641
- # Found it, so get appropriate data and return appropriate
642
- # field.
643
- field_csv = self ._getCsvByIds (lclass , [obj [field ]], channel )
644
- return "%s" % [thing for thing in field_csv ][0 ][lclassfield ]
634
+ if obj [field ] and obj [field ] != 'None' :
635
+ field_lookup_list = self .plugin .registryValue ('fieldLookupList' , channel )
636
+
637
+ for field_lookup in field_lookup_list :
638
+ # Get current field, class and classname in the list.
639
+ (lfield , lclass , lclassfield ) = field_lookup .split ('.' )
640
+ # See if we have found our field.
641
+ if field .lower () == lfield :
642
+ # Found it, so get appropriate data and return appropriate
643
+ # field.
644
+ field_csv = self ._getCsvByIds (lclass , [obj [field ]], channel )
645
+ return "%s" % [thing for thing in field_csv ][0 ][lclassfield ]
645
646
646
647
# Didn't find the field so doesn't need reworking.
647
648
return '%s' % obj [field ]
0 commit comments