qa autopkgtest fails due to "E722 do not use bare except"

Bug #1741246 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Fix Released
Critical
Łukasz Zemczak

Bug Description

Something changes in flake8 in bionic and now the qa test is always failing for all arches with three errors:

qa runtests: commands[0] | python -m flake8 ubuntu_image
ubuntu_image/state.py:114:13: E722 do not use bare except'
ubuntu_image/state.py:149:13: E722 do not use bare except'
ubuntu_image/__main__.py:364:5: E722 do not use bare except'
ERROR: InvocationError: '/tmp/autopkgtest.ECz7TK/build.NFr/src/.tox/qa/bin/python -m flake8 ubuntu_image'
___________________________________ summary ____________________________________
ERROR: qa: commands failed

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Related, other people are getting pissed off about this as well:
https://github.com/PyCQA/pycodestyle/issues/703

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Merged in trunk (skipped the PR step as autopkgtest infra is out right now anyway).

Changed in ubuntu-image:
status: In Progress → Fix Committed
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Part of the fun here (I think) is that the autopkgtests get their dependencies from pypi not the archive...

Changed in ubuntu-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.