Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 389 Bytes

File metadata and controls

29 lines (19 loc) · 389 Bytes

AttributeError: 'NoneType' object has no attribute 'append'

Reproduce

data = None
data.append("new item")

Error Message

AttributeError: 'NoneType' object has no attribute 'append'

Fix

data = []

data.append("new item")

Reflection

Tried to call append on None.

Reference