Skip to content

Commit

Permalink
additional offset hint
Browse files Browse the repository at this point in the history
  • Loading branch information
L-codes committed Oct 15, 2021
1 parent f0717a1 commit 140d00a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions neoreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,12 @@ def askGeorg(conn, connectURLs, redirectURLs):
if BASICCHECKSTRING == data.strip():
log.info("Georg says, 'All seems fine'")
return True
elif BASICCHECKSTRING in data:
left_offset = data.index(BASICCHECKSTRING)
right_offset = len(data) - ( left_offset + len(BASICCHECKSTRING) )
log.error("Georg is ready, but the body needs to be offset")
log.error("You can set the `--cut-left {} --cut-right {}` parameter to body offset".format(left_offset, right_offset))
exit()
else:
if args.skip:
log.debug("Ignore detecting that Georg is ready")
Expand Down

0 comments on commit 140d00a

Please sign in to comment.