Oct-07-2019, 04:56 PM
That line is too long IMHO. I would do it like this:
My guess is that you mean to do something else when you make that tuple? If that's right, what are you trying to do?
if "Classification:" in filtered_artifacts_item_1_0: splitresponse__response_value = filtered_artifacts_item_1_0[0].split('Classification:') else: (filtered_artifacts_item_1_0, "Sent with BlackBerry Work")[0].strip()From this code, it appears filtered_artifacts_item_1_0 is a list. In the fourth line there, you put it in a tuple with "Sent with BlackBerry Work". Then you get the [0] index of that tuple, which is filtered_artifacts_item_1_0. Then you try to strip that, which causes an error, because (as the error says) you can't strip a list.
My guess is that you mean to do something else when you make that tuple? If that's right, what are you trying to do?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures