Skip to content

Commit

Permalink
Fix multi-process loop calls (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhupr committed Aug 25, 2021
1 parent 84d2cb3 commit 1158472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def __repr__(self):
return "{name}(provider={provider})".format(name=self.__class__.__name__, provider=self._provider)

def __getattr__(self, key):
if self._provider is None:
if self.__dict__.get("_provider", None) is None:
raise AttributeError("Please run qlib.init() first using qlib")
return getattr(self._provider, key)

Expand Down

0 comments on commit 1158472

Please sign in to comment.