add missing redirect on missing device
authorStefan Kögl <stefan@skoegl.net>
Sat, 27 Apr 2013 11:47:31 +0000 (27 13:47 +0200)
committerStefan Kögl <stefan@skoegl.net>
Sat, 27 Apr 2013 11:47:31 +0000 (27 13:47 +0200)
mygpo/web/views/podcast.py

index ea3cc08..a7f4c5d 100644 (file)
@@ -298,6 +298,7 @@ def unsubscribe(request, podcast, device_uid):
 
     except DeviceDoesNotExist as e:
         messages.error(request, str(e))
+        return HttpResponseRedirect(return_to)
 
     try:
         podcast.unsubscribe(request.user, device)