Skip to content

Commit

Permalink
Catch all exceptions for backwards compatibility. #1854
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Jan 3, 2018
1 parent 92a5f48 commit 70a6ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/smart_manager/models/task_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 70a6ec1

Please sign in to comment.