From a798dc94a968a6a1bc19a3c858593441676dbea8 Mon Sep 17 00:00:00 2001 From: Virgil Grigoras Date: Mon, 1 Oct 2018 10:45:51 +0200 Subject: [PATCH] Satisfy "Codacy/PR Quality Review" --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 4a397083..a6204968 100644 --- a/cps/web.py +++ b/cps/web.py @@ -533,7 +533,7 @@ def fill_indexpage(page, database, db_filter, order, *join): # if elements have to be deleted, because they are no longer used def modify_database_object(input_elements, db_book_object, db_object, db_session, db_type): # passing input_elements not as a list may lead to undesired results - if type(input_elements) is not list: + if not isinstance(input_elements, list): raise TypeError(str(input_elements) + " should be passed as a list") input_elements = [x for x in input_elements if x != '']