Skip to content

Commit

Permalink
Fix: raise error when unable to download cvprac
Browse files Browse the repository at this point in the history
  • Loading branch information
sugetha24 committed Jun 17, 2024
1 parent 204509b commit 35288d6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def cv_connect(module):
CvpClient
Instanciated CvpClient with connection information.
"""
if not HAS_CVPRAC:
LOGGER.error('Cannot import cvprac: %s', str(CVPRAC_IMP_ERR))
module.fail_json(msg=str('cvprac required for this module. Please install using pip install cvprac'))
client = CvpClient()
LOGGER.info('Connecting to CVP')
connection = Connection(module._socket_path)
Expand Down

0 comments on commit 35288d6

Please sign in to comment.