Update main.py

Updated to catch non-standard input.
Merge pull request #1 from jgherbert/master

Update main.py - assumed technical audience. Thanks for the correction. Software-defined management shall ensue!