Commit 476e45fd authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[seda] Don't consider agency may be None in agency_id/name methods

since this is handled by the caller.
parent 67558c0fc5ee
......@@ -1103,10 +1103,10 @@ class SEDA1XSDExport(SEDA2ExportAdapter):
return seq.title
def agency_name(self, agency):
return agency.agency.dc_title() if agency and agency.agency else None
return agency.agency.dc_title() if agency.agency is not None else None
def agency_id(self, agency):
return text_type(agency.agency.eid) if agency and agency.agency else None
return text_type(agency.agency.eid) if agency.agency is not None else None
def archive_unit_content(self, archive_unit):
return archive_unit.first_level_choice.content_sequence
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment