diff options
-rw-r--r-- | resource_manager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resource_manager.py b/resource_manager.py index 695314b..8aa4fb8 100644 --- a/resource_manager.py +++ b/resource_manager.py @@ -63,8 +63,10 @@ class ResourceManagerBase(object): return data.answer def handle_notification(self, notification): + self.fetch(self._clean_path(notification['path'])) - self.fetch(notification['path'].rsplit('/', 1)[0].encode('utf-8')) + def _clean_path(self, path): + return path.rsplit('/', 1)[0].encode('utf-8') def receive_message(self): if sys.platform == "darwin": |