Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exception details when exceptions happen #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielpops
Copy link

Basic change to include more details when errors occur

dpopes@dpopes:~/scratch/FiveOnceInYourLife (master) [18:13:07] ✓
$ python FOIYL.py
[1]: Define Application.
[2]: Pick Local Application from /Applications/.
[3]: Use predefined script.
>> 3
--Enter number for osascript you want to use--
>> 1
Error
dpopes@dpopes:~/scratch/FiveOnceInYourLife (master) [18:13:12] ✓
$ git checkout add_exception_details
Switched to branch 'add_exception_details'
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
dpopes@dpopes:~/scratch/FiveOnceInYourLife (add_exception_details) [18:13:21] ✓
$ python FOIYL.py
[1]: Define Application.
[2]: Pick Local Application from /Applications/.
[3]: Use predefined script.
>> 3
--Enter number for osascript you want to use--
>> 1
Error: list indices must be integers, not str

This doesn't fix that underlying error / mistake of indexing by string vs index, but it surfaces the actual error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant