wim,
)
import yaml
-import pycurl
-import os
import logging
+from requests import RequestException
@click.group(
exit(1)
# Remove None values
kwargs = {k: v for k, v in kwargs.items() if v is not None}
- sol005 = os.getenv("OSM_SOL005", True)
- ctx.obj = client.Client(host=hostname, sol005=sol005, **kwargs)
+ ctx.obj = client.Client(version=1, host=hostname, **kwargs)
logger = logging.getLogger("osmclient")
cli_osm()
exit(0)
- except pycurl.error as exc:
+ except RequestException as exc:
print(exc)
print(
'Maybe "--hostname" option or OSM_HOSTNAME environment variable needs to be specified'