File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,9 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
103
103
default = "turtle" )
104
104
105
105
parser .add_argument ("--eval-timeout" ,
106
- help = "Time to wait for a Javascript expression to evaluate before giving an error." ,
107
- type = float )
106
+ help = "Time to wait for a Javascript expression to evaluate before giving an error, default 20s." ,
107
+ type = float ,
108
+ default = 20 )
108
109
109
110
exgroup = parser .add_mutually_exclusive_group ()
110
111
exgroup .add_argument ("--print-rdf" , action = "store_true" ,
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ class Process(object):
228
228
229
229
def __init__ (self , toolpath_object , ** kwargs ):
230
230
# type: (Dict[str, Any], **Any) -> None
231
- self .metadata = kwargs [ "metadata" ] # type: Dict[str,Any]
231
+ self .metadata = kwargs . get ( "metadata" , {}) # type: Dict[str,Any]
232
232
self .names = None # type: avro.schema.Names
233
233
names = schema_salad .schema .make_avro_schema (
234
234
[SCHEMA_FILE , SCHEMA_ANY ], schema_salad .ref_resolver .Loader ({}))[0 ]
You can’t perform that action at this time.
0 commit comments