Skip to content

Commit c329c28

Browse files
committed
corrected logic in custom path check
1 parent f7c9a6e commit c329c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

defectdojo_api/defectdojo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, host, api_key, user, api_version='v1', verify_ssl=True, timeo
3434
self.proxies = proxies
3535
self.timeout = timeout
3636

37-
if host.split('/')[3]:
37+
if host.split('/') > 3:
3838
self.custom_path = '/' + '/'.join(host.split('/')[3:]).rstrip('/')
3939
else:
4040
self.custom_path = ''

0 commit comments

Comments
 (0)