#499: bibrank_citation_searcher with empty rnkCITATIONDATA tables
---------------------+-----------------
 Reporter:  hweiler  |      Owner:
     Type:  defect   |     Status:  new
 Priority:  major    |  Milestone:
Component:  BibRank  |    Version:
 Keywords:           |
---------------------+-----------------
 Hi all,

 Today I encountered an issue with citation dictionaries:
 There are no cite dicts in the database that I just loaded into


 {{{
 >>> run_sql("select count(*) from rnkCITATIONDATA")
 ((0L,),)
 }}}


 And I got the following error while trying to load citations:


 {{{
 cites = get_citation_dict("citationdict")
   File "/usr/lib64/python2.6/site-
 packages/invenio/bibrank_citation_searcher.py", line 73, in
 get_citation_dict
     cache_citation_dicts.recreate_cache_if_needed()
   File "/usr/lib64/python2.6/site-packages/invenio/data_cacher.py", line
 76, in recreate_cache_if_needed
     if self.timestamp_verifier() > self.timestamp:
   File "/usr/lib64/python2.6/site-
 packages/invenio/bibrank_citation_searcher.py", line 60, in
 timestamp_verifier
     return res[0][0]
 IndexError: tuple index out of range
 }}}

 Is this a known issue? Is it on my end to catch this error and so this is
 an intended behavior?

-- 
Ticket URL: <http://invenio-software.org/ticket/499>
Invenio <http://invenio-software.org>

Reply via email to