small fix

This commit is contained in:
Armin Köhler 2012-02-29 13:05:27 +01:00
parent 299b807345
commit 16d1125e84

View File

@ -119,7 +119,8 @@ class OSISBible(BibleDB):
if match:
language = BiblesResourcesDB.get_language(match.group(1))
if language:
self.create_meta(u'language_id', language[u'id'])
language_id = language[u'id']
self.create_meta(u'language_id', language_id)
else:
language_id = self.get_language(bible_name)
if not language_id: