Skip to content

Commit

Permalink
fix: Ensure that the informative initialisation print for config vari…
Browse files Browse the repository at this point in the history
…ables converts and concatenates the Default Value as a string
  • Loading branch information
Epicfisher committed Jun 7, 2022
1 parent 4488181 commit 4eff40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def LoadConfigVariable(system_variable, header, key, mandatory, default_value=-1
print("(INIT) FATAL ERROR: Mandatory Variable " + system_variable + " Missing from Both Config File and System Environment Variable! Exiting...")
raise SystemExit(0)
else:
print("(INIT) INFORMATION: Optional Variable " + system_variable + " Missing from Both Config File and System Environment Variable! Using Default Value of " + default_value + "...")
print("(INIT) INFORMATION: Optional Variable " + system_variable + " Missing from Both Config File and System Environment Variable! Using Default Value of " + str(default_value) + "...")
out = default_value
return out

Expand Down

0 comments on commit 4eff40f

Please sign in to comment.