mirror of
https://github.com/c0de-archive/Odoo-Contact-Import.git
synced 2025-08-11 01:08:45 +00:00
Fix if on find_index
This commit is contained in:
2
main.py
2
main.py
@@ -28,7 +28,7 @@ config = {
|
|||||||
|
|
||||||
# Find the index number of a column in a row and return that
|
# Find the index number of a column in a row and return that
|
||||||
def find_index(row=None, col=None):
|
def find_index(row=None, col=None):
|
||||||
if ((row == None) | (col == None)) | ((type(row) != '' | type(col) != ''):
|
if ((row == None) | (col == None)) | ((type(row) != '') | (type(col) != '')):
|
||||||
raise ValueError('find_index requires both row and col to be set to strings')
|
raise ValueError('find_index requires both row and col to be set to strings')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user