Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
Added exception for 1377x
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbenb committed Jan 9, 2021
1 parent d5d3e01 commit 1abc16f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def error_message():
errorMessageBox.exec_()

def x1377():
try:
main_link = "https://1377x.to/search/" + query + '/1/'
main_request = requests.get(
main_link, headers={'User-Agent': 'Mozilla/5.0'})
Expand Down Expand Up @@ -119,6 +120,8 @@ def x1377():
row_position, 5, QTableWidgetItem("1377x"))
self.magnets.append(magnet)
limit_counter = limit_counter + 1
except:
error_message()

def kat():
try:
Expand Down

0 comments on commit 1abc16f

Please sign in to comment.