diff --git a/rqalpha/data/bundle.py b/rqalpha/data/bundle.py index b308c9441..f7d1df51b 100644 --- a/rqalpha/data/bundle.py +++ b/rqalpha/data/bundle.py @@ -419,7 +419,8 @@ def __call__(self, path, fields, **kwargs): h5.close() -def process_init(args: Optional[Synchronized] = None, kwargs = {}): +def process_init(args: Optional[Synchronized] = None, kwargs = None): + kwargs = kwargs or {} import warnings with warnings.catch_warnings(record=True): # catch warning: rqdatac is already inited. Settings will be changed