Error handling in simulator.py

Here is what I was getting before:

File “/home/ark/Downloads/nengo-dl/nengo_dl/simulator.py”, line 358, in run_steps
if e.op.type == “PyFunc”:

AttributeError: ‘NoneType’ object has no attribute ‘type’

and here is what I am getting now:

raise type(e)(node_def, op, message)

ResourceExhaustedError: OOM when allocating tensor with shape[2400000,1]