Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Status: Open => Answered
RaiMan proposed the following answer:
apparently it is not possible to exit() without exception from a try:
block
this works:
shouldExit = False
try:
print "try"
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Status: Open => Answered
RaiMan proposed the following answer:
I do not understand, why the concept cannot be done without using
try/except.
--
You received this question notification because your
New question #695715 on Sikuli:
https://answers.launchpad.net/sikuli/+question/695715
we are currently using logInfo(showMonitors()) to get the resolution
however when we run our test on vms then no monitor is attached and we are not
able to get the resolution with ShowMonitors() as it returns
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Summary changed to:
IDE: exit in try: block throws Exception
Description changed to:
workaround see comment #1
-
*
updated my comments for workaround
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Status: Answered => Open
Chetan is still having a problem:
Thanks Raiman for your comments
unfortunately this would not work for us beacuse:
1. we are having method list Fail() where we wish to stop the
New question #695712 on Sikuli:
https://answers.launchpad.net/sikuli/+question/695712
Hi
i wish to gracefully end my application. however when it use exit or exit(2) i
always get an exception
build 2.0.4
below is sample code
try:
print("help")
exit()
except:
print("in except:")
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Summary changed to:
IDE: exit in try: block throws Exception --- workaround
Description changed to:
workaround see comment #1
-
Hi
i wish to gracefully end
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Description changed to:
Hi
i wish to gracefully end my application. however when it use exit or exit(2) i
always get an exception
build 2.0.4
below is sample code
try:
print("help")
exit()
except:
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Description changed to:
Hi
i wish to gracefully end my application. however when it use exit or exit(2) i
always get an SystemExit exception
is there a way i can avoid systemexit exception?
build 2.0.4
Question #695712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695712
Status: Answered => Solved
Chetan confirmed that the question is solved:
Thanks Raiman, i got now what you mean to say.
appreciated
--
You received this question notification because your team Sikuli
10 matches
Mail list logo