~abompard/mailman/import21

« back to all changes in this revision

Viewing changes to src/mailman/commands/cli_import.py

  • Committer: Aurélien Bompard
  • Date: 2013-10-08 08:55:24 UTC
  • Revision ID: aurelien@bompard.org-20131008085524-s3qe3whcwj9os2sr
Some more unicode checks when importing

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
from mailman.database.transaction import transactional
36
36
from mailman.interfaces.command import ICLISubCommand
37
37
from mailman.interfaces.listmanager import IListManager
38
 
from mailman.utilities.importer import import_config_pck, Import21Error
 
38
from mailman.utilities.importer import import_config_pck
39
39
 
40
40
 
41
41
 
93
93
                        print(_('Ignoring non-dictionary: {0!r}').format(
94
94
                            config_dict), file=sys.stderr)
95
95
                        continue
96
 
                    try:
97
 
                        import_config_pck(mlist, config_dict)
98
 
                    except Import21Error, e:
99
 
                        print(e, file=sys.stderr)
100
 
                        sys.exit(1)
 
96
                    import_config_pck(mlist, config_dict)