Skip to content

Commit

Permalink
Version check at trade.py startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 10, 2014
1 parent 2fc5f8c commit b373f30
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@ def main(argv):


if __name__ == "__main__":
import tradeexcept
import sys
if sys.hexversion < 0x03040000:
raise SystemExit(
"Sorry: TradeDangerous requires Python 3.4 or higher.\n"
"For assistance, see:\n"
"\tFacebook Group: http://kfs.org/td/group\n"
"\tBitbucket Page: http://kfs.org/td/source\n"
"\tEDForum Thread: http://kfs.org/td/thread\n"
)
import tradeexcept

try:
main(sys.argv)
Expand Down

0 comments on commit b373f30

Please sign in to comment.