Re: [Sikuli-driver] [Question #695712]: exit throws Exception

2021-02-23 Thread RaiMan
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"

Re: [Sikuli-driver] [Question #695712]: IDE: exit in try: block throws Exception

2021-02-23 Thread RaiMan
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

[Sikuli-driver] [Question #695715]: Return ScreenResolution when no monitor is present

2021-02-23 Thread Chetan
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

Re: [Sikuli-driver] [Question #695712]: IDE: exit in try: block throws Exception

2021-02-23 Thread Chetan
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

Re: [Sikuli-driver] [Question #695712]: IDE: exit in try: block throws Exception --- workaround

2021-02-23 Thread Chetan
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

[Sikuli-driver] [Question #695712]: exit throws Exception

2021-02-23 Thread Chetan
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:")

Re: [Sikuli-driver] [Question #695712]: IDE: exit in try: block throws Exception --- workaround

2021-02-23 Thread RaiMan
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

Re: [Sikuli-driver] [Question #695712]: exit throws Exception

2021-02-23 Thread Chetan
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:

Re: [Sikuli-driver] [Question #695712]: exit throws Exception

2021-02-23 Thread Chetan
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

Re: [Sikuli-driver] [Question #695712]: IDE: exit in try: block throws Exception

2021-02-23 Thread Chetan
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