Skip to content

Commit

Permalink
Fix pylint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbegaint committed Aug 25, 2020
1 parent a845656 commit cb82ebf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compressai/utils/bench/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,17 +462,17 @@ def get_vtm_encoder_path(build_dir):
try:
elfnames = {'Darwin': 'EncoderApp', 'Linux': 'EncoderAppStatic'}
return os.path.join(build_dir, elfnames[system])
except KeyError:
raise RuntimeError(f'Unsupported platform "{system}"')
except KeyError as err:
raise RuntimeError(f'Unsupported platform "{system}"') from err


def get_vtm_decoder_path(build_dir):
system = platform.system()
try:
elfnames = {'Darwin': 'DecoderApp', 'Linux': 'DecoderAppStatic'}
return os.path.join(build_dir, elfnames[system])
except KeyError:
raise RuntimeError(f'Unsupported platform "{system}"')
except KeyError as err:
raise RuntimeError(f'Unsupported platform "{system}"') from err


class VTM(Codec):
Expand Down

0 comments on commit cb82ebf

Please sign in to comment.