Skip to content

Commit ce8f212

Browse files
committed
use getattr
1 parent 2fe0f82 commit ce8f212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdv/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def check_sdv_versions_and_warn(synthesizer):
273273
"""
274274
current_community_version = getattr(version, 'community', None)
275275
current_enterprise_version = getattr(version, 'enterprise', None)
276-
if synthesizer.__class__.__name__ != 'DayZSynthesizer' and synthesizer._fitted:
276+
if getattr(synthesizer, '_fitted', False):
277277
fitted_community_version = getattr(synthesizer, '_fitted_sdv_version', None)
278278
fitted_enterprise_version = getattr(synthesizer, '_fitted_sdv_enterprise_version', None)
279279
community_mismatch = current_community_version != fitted_community_version

0 commit comments

Comments
 (0)