summaryrefslogtreecommitdiff
path: root/python/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'python/pkg')
-rw-r--r--python/pkg/cdec/sa/extract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pkg/cdec/sa/extract.py b/python/pkg/cdec/sa/extract.py
index b370c4ca..472f128b 100644
--- a/python/pkg/cdec/sa/extract.py
+++ b/python/pkg/cdec/sa/extract.py
@@ -50,7 +50,7 @@ def main():
if not os.path.exists(args.grammars):
os.mkdir(args.grammars)
- if not args.features.endswith('.py'):
+ if not (args.features is None or args.features.endswith('.py')):
sys.stderr.write('Error: feature definition file should be a python module\n')
sys.exit(1)