Browse Source

Destroy valueerror properties

pull/6065/head
Ruud 9 years ago
parent
commit
d84e74a7b6
  1. 6
      couchpotato/core/settings.py

6
couchpotato/core/settings.py

@ -1,5 +1,6 @@
from __future__ import with_statement
import ConfigParser
import traceback
from hashlib import md5
from CodernityDB.hash_index import HashIndex
@ -415,8 +416,11 @@ class Settings(object):
try:
propert = db.get('property', identifier, with_doc = True)
prop = propert['doc']['value']
except ValueError:
propert = db.get('property', identifier)
fireEvent('database.delete_corrupted', propert.get('_id'))
except:
pass # self.log.debug('Property "%s" doesn\'t exist: %s', (identifier, traceback.format_exc(0)))
self.log.debug('Property "%s" doesn\'t exist: %s', (identifier, traceback.format_exc(0)))
return prop

Loading…
Cancel
Save