diff --git a/platypush/entities/_engine.py b/platypush/entities/_engine.py index 52d7d3d4a..d88e2c9d7 100644 --- a/platypush/entities/_engine.py +++ b/platypush/entities/_engine.py @@ -54,7 +54,11 @@ class EntitiesEngine(Thread): if not msgs or self.should_stop: continue - self._process_entities(*msgs) + try: + self._process_entities(*msgs) + except Exception as e: + self.logger.error('Error while processing entity updates: ' + str(e)) + self.logger.exception(e) self.logger.info('Stopped entities engine')