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:
parent
89c43d1718
commit
bef7be7627
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user