missed one possible exception

This commit is contained in:
Thomas Nagy 2012-02-11 14:57:20 +01:00
parent b5bb54ede7
commit 779a93f07b
1 changed files with 3 additions and 2 deletions

View File

@ -682,8 +682,9 @@ class Node(object):
if not node:
self = self.get_src()
node = self.find_node(lst)
if os.path.isdir(node.abspath()):
return None
if node:
if os.path.isdir(node.abspath()):
return None
return node
def find_or_declare(self, lst):