diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-10-08 15:33:34 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-10-08 15:33:34 (GMT) |
commit | f79e0c5fe21474b552cfe62190aa2570c1a94445 (patch) | |
tree | 18fbd107559958cdd2c971a0ab09a06a173ba5f1 /tutorius/constraints.py | |
parent | 6ef85a852323beaf08ffe89194d388e210e1ce3d (diff) |
Merging in LP 429661
Diffstat (limited to 'tutorius/constraints.py')
-rw-r--r-- | tutorius/constraints.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tutorius/constraints.py b/tutorius/constraints.py index 36abdfb..2bc27aa 100644 --- a/tutorius/constraints.py +++ b/tutorius/constraints.py @@ -201,6 +201,8 @@ class FileConstraint(Constraint): # TODO : Decide on the architecture for file retrieval on disk # Relative paths? From where? Support macros? # + if value is None: + return if not os.path.isfile(value): raise FileConstraintError("Non-existing file : %s"%value) return |