diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-12-27 22:24:37 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-12-27 22:24:37 +0100 |
commit | 9bf18900c05547a40bb3c3a7a819a137e81dae92 (patch) | |
tree | acd7047e5650091854a19da838108dd8570591e1 /trygvis/eda/cli/digikey_download_attribute_types_for_category.py | |
parent | 67013ae17af0436b930dce450a813239be969601 (diff) | |
download | eda-rdf-9bf18900c05547a40bb3c3a7a819a137e81dae92.tar.gz eda-rdf-9bf18900c05547a40bb3c3a7a819a137e81dae92.tar.bz2 eda-rdf-9bf18900c05547a40bb3c3a7a819a137e81dae92.tar.xz eda-rdf-9bf18900c05547a40bb3c3a7a819a137e81dae92.zip |
o Adding a 'db-stats' application for summarizing the contents of the database.
o Starting on make-bom. Extremely slow when using rdflib (~8 minutes), jena is very fast (~50 ms).
Diffstat (limited to 'trygvis/eda/cli/digikey_download_attribute_types_for_category.py')
-rw-r--r-- | trygvis/eda/cli/digikey_download_attribute_types_for_category.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trygvis/eda/cli/digikey_download_attribute_types_for_category.py b/trygvis/eda/cli/digikey_download_attribute_types_for_category.py index aef360c..1a33ab1 100644 --- a/trygvis/eda/cli/digikey_download_attribute_types_for_category.py +++ b/trygvis/eda/cli/digikey_download_attribute_types_for_category.py @@ -11,12 +11,12 @@ def run(category, sub_category, output_file, args): c = db.find_category(category) if c is None: - cli.exit("Could not find category \"%s\"" % category) + cli.do_exit("Could not find category \"%s\"" % category) sc = c.find_sub_category_by_label(sub_category) if c is None: - cli.exit("Could not find sub-category \"%s\" inside \"%s\"" % (sub_category, category)) + cli.do_exit("Could not find sub-category \"%s\" inside \"%s\"" % (sub_category, category)) attributes = download_attribute_types_from_category(sc, client) db.merge_attribute_types(attributes) |