# cause of error
','.join([None]) # something along these lines
# solution 1 (convert None in list to string)
','.join(map(str,[None]))
# solution (filter None from a list)
','.join(filter(None, ['a', None, 'c'])) # removes None or 'Falsey' from Array