Private GIT

Skip to content
Snippets Groups Projects
Commit cfe49127 authored by Gaëtan Muller's avatar Gaëtan Muller
Browse files

Return exception as error message if deleting a show fails

parent d08a08fc
Branches
Tags
No related merge requests found
import sickbeard
from sickbeard import showQueueScheduler
from sickbeard.exceptions import CantRemoveException, MultipleShowObjectsException
from sickbeard.exceptions import CantRemoveException, ex, MultipleShowObjectsException
from sickbeard.helpers import findCertainShow
......@@ -27,8 +27,8 @@ class Show:
try:
showQueueScheduler.action.removeShow(show, bool(remove_files))
except CantRemoveException:
return 'Unable to delete show: %s' % show.name, show
except CantRemoveException as exception:
return ex(exception), show
return None, show
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment