mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
[SQUASH] Fix exception when HyperOpt nested class is not defined.
This commit is contained in:
parent
e9f0babe8a
commit
11689100e7
|
@ -39,7 +39,7 @@ class HyperOptAuto(IHyperOpt):
|
|||
:param name: function name.
|
||||
:return: a requested function.
|
||||
"""
|
||||
hyperopt_cls = getattr(self.strategy, 'HyperOpt')
|
||||
hyperopt_cls = getattr(self.strategy, 'HyperOpt', None)
|
||||
default_func = getattr(super(), name)
|
||||
if hyperopt_cls:
|
||||
return getattr(hyperopt_cls, name, default_func)
|
||||
|
|
Loading…
Reference in New Issue
Block a user