Browse Source

Don't try to ignore None release

pull/3771/head
Ruud 11 years ago
parent
commit
9fb348f3a4
  1. 5
      couchpotato/core/plugins/release/main.py

5
couchpotato/core/plugins/release/main.py

@ -234,8 +234,9 @@ class Release(Plugin):
db = get_db()
try:
rel = db.get('id', id, with_doc = True)
self.updateStatus(id, 'available' if rel['status'] in ['ignored', 'failed'] else 'ignored')
if id:
rel = db.get('id', id, with_doc = True)
self.updateStatus(id, 'available' if rel['status'] in ['ignored', 'failed'] else 'ignored')
return {
'success': True

Loading…
Cancel
Save