mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Fix issue about var 'conn' not being defined
This commit is contained in:
parent
e7bf7580c1
commit
462cf09587
1 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,8 @@ def urlopen(url):
|
|||
except urllib.error.HTTPError as e:
|
||||
return {'content': '', 'code': e.code}
|
||||
except urllib.error.URLError as e:
|
||||
_print('URLError')
|
||||
_print('Could not fetch %s : %s' % (url, e))
|
||||
return {'content': '', 'code': 0}
|
||||
return {'content': conn.read().decode('UTF8'), 'code': 200}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue