• Moul's avatar
    [enh] #223: Decouple EndPoint class from Click context · 2c0329ce
    Moul authored
    - Retrieve context from get_current_context()
    - Use RuntimeError to detect that there is no Click context in case Click is installed and loaded
    - Use ModuleNotFoundError in case Click is not installed
    - General exception for now, to keep Python 3.5 support.
    - ModuleNotFoundError requires Python v3.6
    - should be added when dropping Python 3.5 support
    2c0329ce
network_tools.py 7.21 KB