# HG changeset patch # User Sylvain Thénault # Date 1287486980 -7200 # Node ID 31586c7b63f6c57961f408da4e59a6aac1fc56fa # Parent 5cea387a5667b84c586fbe628133cc5b29c50be8 [3.10 migration] must skip None values diff -r 5cea387a5667 -r 31586c7b63f6 misc/migration/3.10.0_Any.py --- a/misc/migration/3.10.0_Any.py Tue Oct 19 13:14:48 2010 +0200 +++ b/misc/migration/3.10.0_Any.py Tue Oct 19 13:16:20 2010 +0200 @@ -25,7 +25,7 @@ continue repo.sources_by_uri.pop(uri) config = u'\n'.join('%s=%s' % (key, value) for key, value in cfg.items() - if key != 'adapter') + if key != 'adapter' and value is not None) create_entity('CWSource', name=unicode(uri), type=unicode(cfg['adapter']), config=config) commit()