Skip to content

Commit e390b67

Browse files
committed
Quick fix for errors in camel_diac.
1 parent 9ce4c69 commit e390b67

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

camel_tools/cli/camel_diac.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ def main():
113113

114114
if arguments['--list']:
115115
for db_entry in _BUILTIN_DBS:
116-
print("{} {}".format(db_entry.name.ljust(8),
117-
db_entry.description))
116+
# TODO: Print descriptions when they are added to catalogue.
117+
# print("{} {}".format(db_entry.name.ljust(8),
118+
# db_entry.description))
119+
print(db_entry.name)
118120
sys.exit(0)
119121

120122
db_name = None

camel_tools/morphology/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def list_builtin_dbs():
6868
builtin databases.
6969
"""
7070

71-
return list(CATALOGUE.get_component('MorphologyDB').datasets)
71+
return list(CATALOGUE.get_component('MorphologyDB').datasets.values())
7272

7373
@staticmethod
7474
def builtin_db(db_name=None, flags='a'):

0 commit comments

Comments
 (0)