TypeError | Python 3.6.9: /home/ajh/binln/python3 Sun Dec 3 17:45:04 2023 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/ajh/public_html/cgi-bin/solar.py in <module>() |
63 page+='<h1>Solar Generation Plots at 5 Fran Court on {}</h1>\n'.format(date) |
64 page+='</div>\n' |
=> 65 chart=EnergyChart.EnergyChart(date) |
66 energyOK=chart.drawBattery() |
67 power=chart.powerGen() |
chart undefined, EnergyChart = <module 'EnergyChart' from '/home/ajh/public_html/cgi-bin/EnergyChart.py'>, EnergyChart.EnergyChart = <class 'EnergyChart.EnergyChart'>, date = '20231203' |
/home/ajh/public_html/cgi-bin/EnergyChart.py in __init__(self=<EnergyChart.EnergyChart object>, date='20231203') |
75 self.totgrid=0.0 |
76 lastt=0.0 |
=> 77 for line in logfile: |
78 res=re.match('([0-9]+):([0-9]*) +'+logPat+'(-?\d+\.\d+)$',line) |
79 if not res: |
line undefined, logfile = None |
TypeError: 'NoneType' object is not iterable
args =
("'NoneType' object is not iterable",)
with_traceback =
<built-in method with_traceback of TypeError object>