X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=RO%2Fosm_ro%2Fwim%2Ferrors.py;h=8fd0a88cf77d63668c839059e0775fd2b20ea8df;hb=ed3e4d4fc2819e425bb8b165e43fcbac259d3f1b;hp=e8d4b63e92ac56fcb6e4f2fb2b0f73a26fe11e13;hpb=72e918cb69191ac04720444bbf4906680059d60c;p=osm%2FRO.git diff --git a/RO/osm_ro/wim/errors.py b/RO/osm_ro/wim/errors.py index e8d4b63e..8fd0a88c 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):