Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_blog_import.py @ 4341:e9971a4b0627
remove uses of twisted.internet.defer.returnValue
This function has been deprecated in Twisted 24.7.0.
author | Povilas Kanapickas <povilas@radix.lt> |
---|---|
date | Wed, 11 Dec 2024 01:17:09 +0200 |
parents | 4b842c1fb686 |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_blog_import.py Tue Dec 03 00:53:18 2024 +0100 +++ b/libervia/backend/plugins/plugin_blog_import.py Wed Dec 11 01:17:09 2024 +0200 @@ -141,13 +141,13 @@ "service": comments_service, "node": comments_node, } - defer.returnValue(recurse_kwargs) + return recurse_kwargs else: if item_import_data["comments"][0]: raise exceptions.DataError( "allow_comments set to False, but comments are there" ) - defer.returnValue(None) + return None def publish_item(self, client, mb_data, service, node, session): log.debug(