Don't try to ignore None release

This commit is contained in:
Ruud
2014-08-01 13:21:15 +02:00
parent e749d132cd
commit 9fb348f3a4

View File

@@ -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