diff --git a/dsmr_backend/mixins.py b/dsmr_backend/mixins.py index 0d66a7f96..e7b5d7448 100644 --- a/dsmr_backend/mixins.py +++ b/dsmr_backend/mixins.py @@ -17,7 +17,7 @@ logger = logging.getLogger('commands') -class StopInfiniteRun(StopIteration): +class StopInfiniteRun(EnvironmentError): """ Triggers InfiniteManagementCommandMixin to stop the current loop. """ pass