Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v committed Oct 21, 2018
1 parent 0c5e563 commit 7bc7aba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion photon.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def topLevel(url):
toplevel = '.'.join(urlparse(main_url).netloc.split('.')[-2:]).split(ext)[0] + ext
return toplevel

domain = topLevel(main_url)
try:
domain = topLevel(main_url)
except:
domain = host

####
# This function makes requests to webpage and returns response body
Expand Down

0 comments on commit 7bc7aba

Please sign in to comment.