mirror of
https://github.com/blacktwin/JBOPS.git
synced 2025-12-15 12:45:36 +00:00
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()
|
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:
|
if opts.killMessage:
|
||||||
message = ' '.join(opts.killMessage)
|
message = ' '.join(opts.killMessage)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user