api: refactor the SWHRemoteAPI's exception class handling
Closed
requested to merge generated-differential-D1261-source into generated-differential-D1261-target
- add a default implementation of the exception class
- make the exception class a class attribute of SWHRemoteAPI that can be overloaded at instanciation time by the api_exception named argument
- so the api_exception positional argument of SWHRemoteAPI becomes a named argument
WARNING: This later point does break compatibility for any use of this class not using named arguments when instanciating it. Fortunately, as far as I know, every swh packages does use named argument when instanciating this class, so this should not break anything.
Migrated from D1261 (view on Phabricator)
Merge request reports
Activity
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DCORE/job/tox/187/ See console output for more information: https://jenkins.softwareheritage.org/job/DCORE/job/tox/187/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DCORE/job/tox/191/ See console output for more information: https://jenkins.softwareheritage.org/job/DCORE/job/tox/191/console
Please register or sign in to reply