2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

missed one possible exception

This commit is contained in:
Thomas Nagy 2012-02-11 14:57:20 +01:00
parent b5bb54ede7
commit 779a93f07b

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):