Fix check of features_file argument on command line
@@ -150,8 +150,7 @@ def main():
help="Path to the new target vocabulary.")
args = parser.parse_args()
- if hasattr(args, "features_file"):
- if len(args.features_file) == 1:
+ if hasattr(args, "features_file") and args.features_file and len(args.features_file) == 1:
args.features_file = args.features_file[0]
_set_log_level(getattr(logging, args.log_level))
