| TypeError | Python 3.9.12: C:\Users\ils\AppData\Local\Programs\Python\Python39\python.exe Fri Aug 30 09:48:08 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> | 
| 157 | 
| 158 #------------------------------------------------------------------------------@ | 
| 159 if __name__ == '__main__': | 
| =>  160     main() | 
| 161 #------------------------------------------------------------------------------@ | 
| main = <function main> | 
| C:\Dev\DLsystem\web\cgi-bin\dl\dl_download_pdf.py in main() | 
| 111                 customer_code = row[0] | 
| 112                 create_time = row[1] | 
| =>  113                 cr_date = dv.get_create_date(con, PG_NAME, | 
| =>  114                                                  customer_code, create_time) | 
| 115                 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>