We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db6432 commit 47d453eCopy full SHA for 47d453e
Scripts/script-ExtractDomainFromUrlFormat.yml
@@ -16,8 +16,16 @@ script: |-
16
if len(domain.group()) > 0:
17
demisto.results(domain.group()[1:])
18
else:
19
- domain = get_tld(inp)
20
- demisto.results(domain)
+ domain = get_tld(inp, fail_silently=True)
+ if not domain:
21
+ inp_with_http = 'https://'+inp
22
+ domain = get_tld(inp_with_http, fail_silently=True)
23
+ if domain:
24
+ demisto.results(domain)
25
+ else:
26
+ demisto.results("")
27
28
29
type: python
30
tags:
31
- indicator-format
@@ -30,3 +38,4 @@ args:
38
description: The URL or Email to process
39
scripttarget: 0
32
40
dockerimage: demisto/tld
41
+releaseNotes: 'avoid error in domain format script'
0 commit comments