Skip to content

Commit

Permalink
Explicitly call method to get error severity
Browse files Browse the repository at this point in the history
Fixes #117.
  • Loading branch information
dkav committed May 15, 2021
1 parent 52ecc6d commit fde233e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/scripts/lm_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@ def print_warnings():
filename = tbinfo.split(", ")[0]
filename = filename.rsplit("File ")[1]

if arcpy.GetMaxSeverity > 1:
if arcpy.GetMaxSeverity() > 1:
msg = ("The following ArcGIS error is being reported "
"on line " + line + " of " + filename + ":")
arcpy.AddWarning(msg)
Expand Down

0 comments on commit fde233e

Please sign in to comment.