mirror of
https://github.com/c0de-archive/Odoo-Contact-Import.git
synced 2024-12-22 09:12:39 +00:00
Fix if on find_index
This commit is contained in:
parent
8df6301f64
commit
ddd4da9d9d
2
main.py
2
main.py
@ -28,7 +28,7 @@ config = {
|
||||
|
||||
# Find the index number of a column in a row and return that
|
||||
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')
|
||||
exit(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user