TypeError | Python 3.9.12: C:\Users\ils\AppData\Local\Programs\Python\Python39\python.exe Sat Aug 31 05:07:21 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\Dev\DLsystem\web\cgi-bin\dl\dl_download_pdf.py in <module> |
160 |
161 #------------------------------------------------------------------------------@ |
162 if __name__ == '__main__': |
=> 163 main() |
164 #------------------------------------------------------------------------------@ |
main = <function main> |
C:\Dev\DLsystem\web\cgi-bin\dl\dl_download_pdf.py in main() |
114 customer_code = row[0] |
115 create_time = row[1] |
=> 116 cr_date = dv.get_create_date(con, PG_NAME, |
=> 117 customer_code, create_time) |
118 create_date = uf.conv_datetime(cr_date) |
cr_date undefined, global dv = <module 'db.db_delivery' from 'C:\\Dev\\DLsystem\\web\\cgi-bin\\dl\\..\\db\\db_delivery.py'>, dv.get_create_date = <function get_create_date>, con = <mysql.connector.connection_cext.CMySQLConnection object>, global PG_NAME = 'dl_download_pdf', customer_code = '495672', create_time = '2024-07-31 08:02:47' |
C:\Dev\DLsystem\web\cgi-bin\db\db_delivery.py in get_create_date(con=<mysql.connector.connection_cext.CMySQLConnection object>, pgname='dl_download_pdf', customer_code='495672', create_time='2024-07-31 08:02:47') |
816 log_name = uf.get_logname(pgname, 'get_create_date') |
817 res = uf.exec_read_one(con, sql, log_name) |
=> 818 create_date = res[0] |
819 return(create_date) |
820 |
create_date undefined, res = None |
TypeError: 'NoneType' object is not subscriptable
args =
("'NoneType' object is not subscriptable",)
with_traceback =
<built-in method with_traceback of TypeError object>