def METHOD_NAME():
    try:
        make_dwca(collection, user, definition, path, eml=eml)
    except Exception as e:
        tb = traceback.format_exc()
        logger.error('make_dwca failed: %s', tb)
        Message.objects.create(user=user, content=json.dumps({
            'type': 'dwca-export-failed',
            'exception': str(e),
            'traceback': tb if settings.DEBUG else None,
        }))
    else:
        Message.objects.create(user=user, content=json.dumps({
            'type': 'dwca-export-complete',
            'file': filename
        }))