mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
FirmwareUpdateChecker: Small fixes (typing and lowercase input).
This commit is contained in:
parent
f2b50c748c
commit
69cef98c30
2 changed files with 3 additions and 4 deletions
|
@ -39,9 +39,8 @@ class FirmwareUpdateCheckerJob(Job):
|
|||
|
||||
try:
|
||||
request = urllib.request.Request(url, headers=self._headers)
|
||||
current_version_file = urllib.request.urlopen(request)
|
||||
reader = codecs.getreader("utf-8")
|
||||
result = reader(current_version_file).read(firstline=True)
|
||||
response = urllib.request.urlopen(request)
|
||||
result = response.read().decode('utf-8')
|
||||
except URLError:
|
||||
Logger.log('w', "Could not reach '{0}', if this URL is old, consider removal.".format(url))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue