Jan-27-2020, 07:21 PM
Ok, I've narrowed it down a little.
Firstly, passing through items rather than item was a typo when writing the forum post. The code itself does use item.
The brackets around the return statement were a bad coding habit of mine. They've now been removed.
Update.... I'm clinically dumb. I removed the error handling as you suggested, and got back
Firstly, passing through items rather than item was a typo when writing the forum post. The code itself does use item.
The brackets around the return statement were a bad coding habit of mine. They've now been removed.
Update.... I'm clinically dumb. I removed the error handling as you suggested, and got back
'function' object is not subscriptableWorked back through and had a look at it, and I'd given FunctionB an identical name to a variable in FunctionA, hence the (in hindsight rather obvious) error. A quick fix thankfully!