opera-adt / COMPASS

COregistered Multi-temPorAl Sar Slc
Apache License 2.0
38 stars 18 forks source link

fix `try,except` and `except, pass` codacy issues #168

Closed LiangJYu closed 1 year ago

LiangJYu commented 1 year ago

This PR fixes #165 "codacy issues with try, except and except, pass". Codacy page here.

Changes in PR:

  1. added check if file exists
  2. used specific exception from jpg crash, instead of capturing all of them.
  3. removed pass and replaced with gdal.OpenEx code since that is the logical thing to follow should gdal.Open fail on account of jpg confusion.
vbrancat commented 1 year ago

@seongsujeong Please, review this PR. It should be easy to go through. Thanks

vbrancat commented 1 year ago

@LiangJYu please, update this branch with the current state of main. Merci

vbrancat commented 1 year ago

@seongsujeong can you please review this PR? Thanks