Skip to content

Commit 0a7713d

Browse files
author
bosd
committed
Fix remaining connection.is_connected() call\n\n- Remove the last remaining connection.is_connected() call that was causing AttributeError\n- This was a leftover from earlier fixes that wasn't completely removed\n- Fixes the AttributeError: 'Connection' object has no attribute 'is_connected'
1 parent 8e2502e commit 0a7713d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/odoo_data_flow/lib/relational_import.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ def _resolve_related_ids(
3535
connection = conf_lib.get_connection_from_dict(config)
3636
else:
3737
connection = conf_lib.get_connection_from_config(config_file=config)
38-
if not connection.is_connected():
39-
log.error("Cannot perform XML-ID lookup: Odoo connection failed.")
40-
return None
4138

4239
id_list = external_ids.drop_nulls().unique().to_list()
4340
log.info(f"Resolving {len(id_list)} unique external IDs for '{related_model}'...")

0 commit comments

Comments
 (0)