Skip to content

Commit

Permalink
fix error when a min language isn't set (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnybod authored Dec 31, 2022
1 parent f88462f commit 34565d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions empire/server/common/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def _validate_module_params(
if not agent:
return None, "invalid agent name"

module_version = module.min_language_version.split(".") or 0
agent_version = agent.language_version.split(".") or 0
module_version = (module.min_language_version or "0").split(".")
agent_version = (agent.language_version or "0").split(".")
# makes sure the version is the right format: "x.x"
if len(agent_version) == 1:
agent_version.append(0)
Expand Down

0 comments on commit 34565d4

Please sign in to comment.