Skip to content
Snippets Groups Projects
Commit f09bd298 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Implementation wrapper functions should not use `return_error_info` decorator...

Implementation wrapper functions should not use `return_error_info` decorator to avoid log pollution by propagated error messages.
parent f4309f44
No related branches found
No related tags found
2 merge requests!827Merge develop changes to master,!688Issue #240 - initial set of changes
......@@ -119,7 +119,6 @@ async def get_content(context, author: str, permlink: str, observer=None):
return await _get_content_impl(db, True, author, permlink, observer)
@return_error_info
async def _get_content_impl(db, fat_node_style, author: str, permlink: str, observer=None):
"""Get a single post object."""
valid_account(author)
......@@ -145,7 +144,6 @@ async def get_content_replies(context, author: str, permlink: str):
return await _get_content_replies_impl(db, True, author, permlink)
@return_error_info
async def _get_content_replies_impl(db, fat_node_style, author: str, permlink: str):
"""Get a list of post objects based on parent."""
valid_account(author)
......
......@@ -268,7 +268,6 @@ def api_vote_info(rows, votes_presentation):
return ret
@return_error_info
async def find_votes_impl(db, author: str, permlink: str, votes_presentation, limit: int = 1000):
sql = f"SELECT * FROM {SCHEMA_NAME}.find_votes(:author,:permlink,:limit)"
rows = await db.query_all(sql, author=author, permlink=permlink, limit=limit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment