Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
This is in regards to the issue - Example code issue golismero#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.
  • Loading branch information
ksakthii001 authored Mar 22, 2018
1 parent ee38109 commit 0e9ac28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openvas_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e9ac28

Please sign in to comment.