Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Destroy valueerror properties
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudBurger committed Feb 9, 2016
1 parent c790766 commit d84e74a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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
Expand Down Expand Up @@ -415,8 +416,11 @@ def getProperty(self, identifier):
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

Expand Down

0 comments on commit d84e74a

Please sign in to comment.