Skip to content

Commit

Permalink
black reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
djm21 committed Oct 21, 2024
1 parent fe02102 commit 681d7ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sasctl/pzmm/write_score_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,21 +452,20 @@ def _write_imports(
try:
if current_session().version_info() != 3.5:
self.score_code += "import settings\n\n"

"""
import settings
"""

except AttributeError:
warn(
"No current session connection was found to a SAS Viya server. Score "
"code will be written under the assumption that the target server is "
"SAS Viya 4."
)
self.score_code += "import settings\n\n"


if mojo_model or binary_h2o_model:
self.score_code += "import h2o\n\nh2o.init()\n\n"
Expand Down

0 comments on commit 681d7ce

Please sign in to comment.