From 70a6ec1c4ae63498a0624c095735b066d30200d5 Mon Sep 17 00:00:00 2001 From: Suman Chakravartula Date: Tue, 2 Jan 2018 17:53:07 -0800 Subject: [PATCH] Catch all exceptions for backwards compatibility. #1854 --- src/rockstor/smart_manager/models/task_def.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rockstor/smart_manager/models/task_def.py b/src/rockstor/smart_manager/models/task_def.py index 183c86a19..6cd89e9b5 100644 --- a/src/rockstor/smart_manager/models/task_def.py +++ b/src/rockstor/smart_manager/models/task_def.py @@ -50,7 +50,7 @@ def share_name(self, *args, **kwargs): task_metadata = json.loads(self.json_meta) try: sn = Share.objects.get(id=task_metadata['share']).name - except Share.DoesNotExist: + except Exception: sn = 'N/A' return sn