[PATCH cubicweb] Remove useless error FindEntittyError

Laurent Peuch cortex at worlddomination.be
Tue Jan 14 18:26:49 CET 2020


LGTM 

On Tue, Jan 14, 2020 at 05:43:11PM +0100, noe.gaumont at logilab.fr wrote:
> # HG changeset patch
> # User Noe Gaumont <ngaumont at logilab.fr>
> # Date 1579019891 -3600
> #      Tue Jan 14 17:38:11 2020 +0100
> # Node ID dd557dca2e86ec9786435a6f33ba74a9e1f6e440
> # Parent  ee2d77be950c28c76e07490d2f670a6aa45cd2df
> # Available At https://hg.logilab.org/review/cubicweb
> #              hg pull https://hg.logilab.org/review/cubicweb -r dd557dca2e86
> Remove useless error FindEntittyError
> 
> This error is not used since the deprecated find_one_entity method has been removed in 566f8fce5168
> 
> diff --git a/cubicweb/req.py b/cubicweb/req.py
> --- a/cubicweb/req.py
> +++ b/cubicweb/req.py
> @@ -34,10 +34,6 @@ ONESECOND = timedelta(0, 1, 0)
>  CACHE_REGISTRY = {}
>  
>  
> -class FindEntityError(Exception):
> -    """raised when find_one_entity() can not return one and only one entity"""
> -
> -
>  class Cache(dict):
>      def __init__(self):
>          super(Cache, self).__init__()
> diff --git a/doc/api/req.rst b/doc/api/req.rst
> --- a/doc/api/req.rst
> +++ b/doc/api/req.rst
> @@ -5,7 +5,5 @@
>  
>  .. automodule:: cubicweb.req
>  
> -    .. autoexception:: FindEntityError
> -
>      .. autoclass:: RequestSessionBase
>          :members:
> 

-- 

Laurent Peuch -- Bram



More information about the cubicweb-devel mailing list