CompensationState invalid code fix

* fixes bug which occurs for non existing code
This commit is contained in:
mpeltriaux 2022-11-11 11:24:49 +01:00
parent d0bf728013
commit d38ad50403

View File

@ -178,7 +178,8 @@ class CompensationMigrater(BaseMigrater):
code_lists__in=[CODELIST_AFTER_STATE_BIOTOPES_ID]
)
except ObjectDoesNotExist:
raise ObjectDoesNotExist(f"{compensation.identifier} has unknown state code: {state_type}")
# total garbage - can not be processed. Jump to next entry
continue
tmp_cursor_z_code = self.db_connection.cursor()
tmp_cursor_z_code.execute(z_code_sql.format(pkey_entry))
z_code_results = tmp_cursor_z_code.fetchall()