X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO%2Fosm_ro%2Fwim%2Ferrors.py;h=3175acdec7a1633ca1a2706b30ed99d0c7b14c63;hp=e8d4b63e92ac56fcb6e4f2fb2b0f73a26fe11e13;hb=51cc9c4c78bb54c84a5d2399207d206eb30ea247;hpb=7d782eff123e5b44d41437377ccca66ad1e8b21b diff --git a/RO/osm_ro/wim/errors.py b/RO/osm_ro/wim/errors.py index e8d4b63e..3175acde 100644 --- a/RO/osm_ro/wim/errors.py +++ b/RO/osm_ro/wim/errors.py @@ -103,12 +103,10 @@ class UndefinedAction(HttpMappedError): class UndefinedWimConnector(DbBaseException): """The connector class for the specified wim type is not implemented""" - def __init__(self, wim_type, module_name, location_reference): - super(UndefinedWimConnector, self).__init__( - ('{}: `{}`. Could not find module `{}` ' - '(check if it is necessary to install a plugin)' - .format(self.__class__.__doc__, wim_type, module_name)), - http_code=Bad_Request) + def __init__(self, wim_type, module_name): + super(UndefinedWimConnector, self).__init__("Cannot load a module for {t} type '{n}'. The plugin 'osm_{n}' has" + " not been registered".format(t=wim_type, n=module_name), + http_code=Bad_Request) class WimAccountOverwrite(DbBaseException): @@ -143,7 +141,7 @@ class UndefinedUuidOrName(DbBaseException): class UndefinedWanMappingType(InvalidParameters): - """The dict wan_service_mapping_info MUST contain a `type` field""" + """The dict service_mapping_info MUST contain a `type` field""" def __init__(self, given): super(UndefinedWanMappingType, self).__init__(