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

Report notebook being processed when erroring #6

Open
kwinkunks opened this issue Jan 31, 2022 · 0 comments
Open

Report notebook being processed when erroring #6

kwinkunks opened this issue Jan 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kwinkunks
Copy link
Member

To do this, I think we'd have to wrap each likely failure point -- e.g. checking for presence of data files on AWS -- in a try -- so we can give the name of the current notebook. Otherwise the error just looks like (for example):

(py39) matt@marlinspike:/local/Dropbox/dev/geocomputing$ ./geocomputing.py test geocomp-mldl
Testing geocomp-mldl. Ctrl-C to abort.
Processing notebooks +++++++++++++++++++++
Checking and downloading data ...Traceback (most recent call last):
  File "/local/Dropbox/dev/geocomputing/./geocomputing.py", line 333, in <module>
    cli()
  File "/home/matt/miniconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/matt/miniconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/matt/miniconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/matt/miniconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/matt/miniconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/local/Dropbox/dev/geocomputing/./geocomputing.py", line 69, in test
    _ = build_course(course, clean=True, zip=False, upload=False, clobber=True)
  File "/local/Dropbox/dev/geocomputing/./geocomputing.py", line 137, in build_course
    raise Exception(f"Missing data URL: {url}")
Exception: Missing data URL: https://geocomp.s3.amazonaws.com/data/Panoma_Field_Permian_data.csv

Should be much easier with #1

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

No branches or pull requests

1 participant