[PATCH seda] [profile gen] Avoid querying NoneType objects in SEDA1XSDExport.xsd_attachment()

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Oct 17 15:01:12 CEST 2017



On 17/10/2017 11:20, Philippe Pepiot wrote:
> On 10/16/2017 04:06 PM, Denis Laxalde wrote:
>> # HG changeset patch
>> # User Denis Laxalde <denis.laxalde at logilab.fr>
>> # Date 1508161507 -7200
>> #      Mon Oct 16 15:45:07 2017 +0200
>> # Node ID 54c9cd3d85f0bb2a6f5d74f91fac6a184307d617
>> # Parent  2c05e49c43c88e412df00116f01eca3dc25eb4d1
>> [profile gen] Avoid querying NoneType objects in SEDA1XSDExport.xsd_attachment()
>>
>> Follow-up on cc3b3e0f6d42 to fix recurring "AttributeError: 'NoneType'
>> object has no attribute 'concepts'" observed in demo's logs.
> Applied, thanks!
>
I think the correct approach there would have been to add a migration
step, since with recent code base those entities are created by hooks 
and so one may always expect them.

Anyway, that does the trick and thank you for tackling this.

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list