Skip to content

batch replace 'except:' with 'except Exception:'#271

Merged
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:fix-except
Apr 20, 2022
Merged

batch replace 'except:' with 'except Exception:'#271
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:fix-except

Conversation

@njzjz

@njzjz njzjz commented Apr 18, 2022

Copy link
Copy Markdown
Member

The latter will not catch KeyboardInterrupt and SystemExit. See https://stackoverflow.com/a/18982726/9567349.

The latter will not catch `KeyboardInterrupt` and `SystemExit`. See https://stackoverflow.com/a/18982726/9567349.
@codecov-commenter

codecov-commenter commented Apr 18, 2022

Copy link
Copy Markdown

Codecov Report

Merging #271 (d5cbc59) into devel (5c52fac) will not change coverage.
The diff coverage is 40.00%.

@@           Coverage Diff           @@
##            devel     #271   +/-   ##
=======================================
  Coverage   81.65%   81.65%           
=======================================
  Files          61       61           
  Lines        5185     5185           
=======================================
  Hits         4234     4234           
  Misses        951      951           
Impacted Files Coverage Δ
dpdata/rdkit/sanitize.py 43.77% <0.00%> (ø)
dpdata/unit.py 88.15% <0.00%> (ø)
dpdata/fhi_aims/output.py 91.40% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c52fac...d5cbc59. Read the comment docs.

@wanghan-iapcm wanghan-iapcm merged commit f2d3dbd into deepmodeling:devel Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants