mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
Refactor scrape_uztracker call in GUI to handle no results more gracefully and improve debug output
This commit is contained in:
@@ -52,10 +52,8 @@ def scrape_uztracker(search, debug):
|
||||
return resulttitles, results
|
||||
|
||||
if not result:
|
||||
if debug:
|
||||
print(f'No Results found for "{search}"')
|
||||
# add popup in gui for no result
|
||||
return
|
||||
return None
|
||||
|
||||
except requests.RequestException as e:
|
||||
if result:
|
||||
|
||||
Reference in New Issue
Block a user