Skip to content

Commit

Permalink
Merge pull request #149 from PagerDuty/fix-for-python-2-version-check
Browse files Browse the repository at this point in the history
Fix for Python 2 version check.
  • Loading branch information
dobs authored Apr 28, 2020
2 parents 4a8ef08 + cfdee09 commit 4ec6687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pdagentd.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
)

# Check Python version.
if sys.version_info.major == 2 and sys.version_info.minor < 7:
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
raise SystemExit(
"Agent requires Python version 2.7 or higher.\n" +
"Agent will now quit"
Expand Down

0 comments on commit 4ec6687

Please sign in to comment.