Skip to content
Snippets Groups Projects
Commit 1b77ebff authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: record match when cfood fails

parent bd580bb5
No related branches found
No related tags found
1 merge request!22Release 0.3
......@@ -5,9 +5,10 @@ import os
import sqlite3
from hashlib import sha256
import caosdb as db
from lxml import etree
import caosdb as db
def put_in_container(stuff):
if isinstance(stuff, list):
......
......@@ -194,8 +194,8 @@ class Crawler(object):
for idx, item in self.iteritems():
if Cfood.match_item(item):
try:
cfoods.append(Cfood(item))
matches[idx].append(Cfood.__name__)
cfoods.append(Cfood(item))
logger.debug("{} matched\n{}.".format(
Cfood.__name__,
item))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment