TypeError | Python 3.9.12: C:\Users\ils\AppData\Local\Programs\Python\Python39\python.exe Fri Aug 30 07:37:00 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> |
156 |
157 #------------------------------------------------------------------------------@ |
158 if __name__ == '__main__': |
=> 159 main() |
160 #------------------------------------------------------------------------------@ |
main = <function main> |
C:\Dev\DLsystem\web\cgi-bin\dl\dl_download_pdf.py in main() |
110 customer_code = row[0] |
111 create_time = row[1] |
=> 112 cr_date = dv.get_create_date(con, PG_NAME, |
=> 113 customer_code, create_time) |
114 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 = '19116001', create_time = '2024-09-02 05:59:15' |
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='19116001', create_time='2024-09-02 05:59:15') |
815 log_name = uf.get_logname(pgname, 'get_create_date') |
816 res = uf.exec_read_one(con, sql, log_name) |
=> 817 create_date = res[0] |
818 return(create_date) |
819 |
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>