diff --git a/platypush/plugins/media/local.py b/platypush/plugins/media/local.py index 7a38741cd3..1a0f0e6edf 100644 --- a/platypush/plugins/media/local.py +++ b/platypush/plugins/media/local.py @@ -128,8 +128,8 @@ class LocalMediaSearcher: if not os.path.isdir(media_dir): self.logger.info('Directory {} is no longer accessible, removing it'. format(media_dir)) - session.query(MediaDirectory). \ - filter(MediaDirectory.path=media_dir).delete() + session.query(MediaDirectory) \ + .filter(MediaDirectory.path=media_dir).delete() return stored_file_records = {