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

Improve exception when missing env var #253

Merged
merged 1 commit into from Mar 21, 2023
Merged

Commits on Mar 20, 2023

  1. Improve exception when missing env var

    When using from_env() and having not set one of the necessary env var.
    
    ```python
    import sys
    sys.path.insert(0, './podman')
    import podman
    podman.from_env()
    ```
    
    causes:
    
    ```ValueError: CONTAINER_HOST or DOCKER_HOST must be set to URL of podman service.```
    
    fixes containers#223
    
    Signed-off-by: Jhon Honce <jhonce@redhat.com>
    jwhonce committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    aeb21a4 View commit details
    Browse the repository at this point in the history