Exit if a sessionID wasn't provided

If the user mistakenly calls the script without a `sessionID`, exit 
early with a warning message and the likely reason.
This commit is contained in:
Landon Abney 2018-06-20 10:45:00 -07:00
parent 89c43d1718
commit bef7be7627
No known key found for this signature in database
GPG Key ID: 4414384AEEE3FB2B

View File

@ -264,6 +264,10 @@ if __name__ == "__main__":
opts = parser.parse_args()
if not opts.sessionId:
sys.stderr.write("No sessionId provided! Is this synced content?\n")
sys.exit(1)
if opts.killMessage:
message = ' '.join(opts.killMessage)
else: