Page MenuHomeSoftware Heritage

flake8: except: pass is evil
ClosedPublic

Authored by douardda on Oct 24 2018, 4:55 PM.

Details

Summary

at least report the exception.

Test Plan

flake8 should not be as grumpy as it used to be

Diff Detail

Repository
rDARC Software Heritage Archiver
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 24 2018, 5:33 PM
seirl requested changes to this revision.Oct 24 2018, 5:43 PM
seirl added a subscriber: seirl.
seirl added inline comments.
swh/archiver/checker.py
61

Why not use logging.exception() instead?

This revision now requires changes to proceed.Oct 24 2018, 5:43 PM
swh/archiver/checker.py
61

That'd be more consistent with other locations.
Also that'd potentially convey more information if we ever start digging the log errors on that part ;)

morphed into: Move logger creation from LogContentChecker to its base class BaseContentChecker

fix forgottent argument to self.logger.exception()

Fix another flake8 error in checker.py

so jenkins is (hopefully) green

ardumont removed a reviewer: seirl.
This revision is now accepted and ready to land.Oct 25 2018, 6:01 PM

so jenkins is (hopefully) green

It is \m/