Few improvements

This commit is contained in:
VirtuBox
2019-07-30 13:38:41 +02:00
parent 0fef40883b
commit 1d9156e99a
2 changed files with 2 additions and 3 deletions

View File

@@ -1701,7 +1701,6 @@ class WOStackController(CementBaseController):
] ]
except Exception as e: except Exception as e:
Log.debug(self, "{0}".format(e)) Log.debug(self, "{0}".format(e))
pass
if (apt_packages) or (packages): if (apt_packages) or (packages):
Log.debug(self, "Calling pre_pref") Log.debug(self, "Calling pre_pref")

View File

@@ -33,12 +33,12 @@ class WODownload():
Log.error(self, "Unable to download file, {0}" Log.error(self, "Unable to download file, {0}"
.format(filename)) .format(filename))
return False return False
except urllib.error.HTTPError as e: except urllib.HTTPError.error as e:
Log.error(self, "Package download failed. {0}" Log.error(self, "Package download failed. {0}"
.format(pkg_name)) .format(pkg_name))
Log.debug(self, "[{err}]".format(err=str(e.reason))) Log.debug(self, "[{err}]".format(err=str(e.reason)))
return False return False
except urllib.error.ContentTooShortError as e: except urllib.ContentTooShortError.error as e:
Log.debug(self, "{0}{1}".format(e.errno, e.strerror)) Log.debug(self, "{0}{1}".format(e.errno, e.strerror))
Log.error(self, "Package download failed. The amount of the" Log.error(self, "Package download failed. The amount of the"
" downloaded data is less than " " downloaded data is less than "