Skip to content

Instantly share code, notes, and snippets.

@Gwith
Created October 16, 2017 21:00
Show Gist options
  • Save Gwith/35911f9fdedba8853fc8dce91014e757 to your computer and use it in GitHub Desktop.
Save Gwith/35911f9fdedba8853fc8dce91014e757 to your computer and use it in GitHub Desktop.
def test(self):
try:
for row in range(self.orders_table.rowCount()):
for col in range(self.orders_table.columnCount()):
value = self.orders_table.item(row, col).text()
self.orders_table_list.append(value)
except Exception as e:
print(e)
Message in console: 'NoneType' object has no attribute 'text'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment