The node (made with python) you see in the image below doesn’t work anymore. He did work and in terms of versions / updates nothing has changed in the meantime.
Can someone help me with this?
There are null values in your list. You should clean them or add a conditional to your code.
use " try" “except” in your code to get rid of warnings
you can figure out what is causing the error using this code:
new_list = []
errors = []
for item in IN[0]
try:
new_list.append( datetime.datetime.strptime(item, "%d-%m-%Y") )
except Exception as ex:
errors.append([item, str(ex)])
OUT = new_list, errors
@Jordy Indentation and Colon in Python is very important, when its multiple lines
Hi,
not properly. It missed some indents.
Try replacing this (from line 13 to 18):
new_list = []
errors = []
for item in IN[0]:
try:
new_list.append(datetime.datetime.strptime(item, "%d-%m-%Y"))
except Exception as ex:
errors.append([item, str(ex)])