1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Fix unbound local error

This commit is contained in:
Rnhmjoj 2014-12-04 20:03:40 +01:00
parent b8f922ae6e
commit 2b1112258e

View File

@ -438,7 +438,7 @@ def main():
if args.database:
mags = local(args)
else:
mirrors = ['http://thepiratebay.se']
mags, mirrors = [], ['http://thepiratebay.se']
try:
opener = request.build_opener(NoRedirection)
f = opener.open('https://proxybay.info/list.txt', timeout=5)
@ -458,7 +458,7 @@ def main():
except URLError:
print('Failed', color='WARN')
if not mags or len(mags) == 0:
if not mags:
print('No results')
return