app: fix tests for resolved kv_file

This commit is contained in:
Mathieu Virbel 2014-01-09 13:52:55 +01:00
parent e8ecaa112c
commit 7fd744c838
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ class App(EventDispatcher):
# Load KV file
Logger.debug('App: Loading kv <{0}>'.format(filename))
rfilename = resource_find(filename)
if not exists(rfilename):
if rfilename is None or not exists(rfilename):
Logger.debug('App: kv <%s> not found' % filename)
return False
root = Builder.load_file(rfilename)