[Tutor] Python script errors
Alan Gauld
alan.gauld at yahoo.co.uk
Wed Dec 12 11:37:18 EST 2018
On 12/12/2018 12:57, Ravi Kumar wrote:
> '{0:20} {1:30} {2:16} {3:18} {4:10} {5:11} '.format(
> deviceserial, type, macaddress,occurredAt, details))
> TypeError: unsupported format string passed to NoneType.__format__
You have 6 format holders in your string but you only
pass 5 values. Also you seem to have a spurious closing
parens at the end of the call to format (after details).
But without seeing the full code or error message
it is hard to know what is going on.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list