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

Bug: Exception instead of human-readable message #5

Open
1 task done
atimin opened this issue Mar 15, 2023 · 0 comments
Open
1 task done

Bug: Exception instead of human-readable message #5

atimin opened this issue Mar 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@atimin
Copy link
Member

atimin commented Mar 15, 2023

What happened?

If I use a not-existing alias, I receive a long exception stack trace instead of a short humam-readable message "Alias doesn't exist".

Version

v0.8.1

OS

Linux

Programming Language

No response

Snippet to repeat the bug

drift-cli export raw SOME_NOT_EXISTING_ALIAS --start 2023-01-01 --stop 2023-01-02

Logs

MacBook-Pro-von-Alexey~/tmp % drift-cli --parallel 10 export raw tesa-1d4 ./raw --start 2023-03-15T09:00:00 --stop 2023-03-15T09:05:00 --topics camera-1 --jpeg
Traceback (most recent call last):
  File "/Users/atimin/Library/Python/3.9/bin/drift-cli", line 8, in <module>
    sys.exit(main())
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/drift_cli/__init__.py", line 8, in main
    return cli(obj={})  # pylint:disable=unexpected-keyword-arg, no-value-for-parameter
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/atimin/Library/Python/3.9/lib/python/site-packages/drift_cli/export.py", line 88, in raw
    alias: Alias = rea

Attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@atimin atimin added the bug Something isn't working label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant