Commit d979689d authored by Marko Kuder's avatar Marko Kuder

fixed QA not defined error

parent c2000847
......@@ -323,6 +323,8 @@ def score_by_sniffing_data(archival, resource, score_reasons, log):
* If it cannot work out the format then format_string is None
* If it cannot score it, then score is None
'''
from ckanext.qa.model import QA
if not archival or not archival.cache_filepath:
score_reasons.append(u'Ta datoteka ob ocenjevanju ni bila prenešena.')
return (None, None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment