From 0e9ac2897c9380e4a24e1976e6ffc5ce38c484e4 Mon Sep 17 00:00:00 2001 From: ksakthii001 <36714761+ksakthii001@users.noreply.github.com> Date: Thu, 22 Mar 2018 11:40:39 -0700 Subject: [PATCH] Update __init__.py This is in regards to the issue - Example code issue #14 We are receiving this problem due to referencing a port number that is already in use. That is the reason we are getting this error. I have added the outputs under the issue section. --- openvas_lib/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvas_lib/__init__.py b/openvas_lib/__init__.py index 0e9c6c8..29ce7bb 100644 --- a/openvas_lib/__init__.py +++ b/openvas_lib/__init__.py @@ -501,6 +501,8 @@ def __init__(self, host, user, password, port=9390, timeout=None, ssl_verify=Fal raise VulnscanAuthFail("Error while trying to authenticate into the server.") except RemoteVersionError: raise VulnscanVersionError("Invalid OpenVAS version in remote server.") + except ValueError: + raise ValueError('Invalid Argument Call') # # Flow control