philhanna / xxd

Python version of xxd
MIT License
0 stars 0 forks source link

Do not show traceback when exceptions are thrown #26

Closed philhanna closed 2 years ago

philhanna commented 2 years ago

Example:

$ xxd -ps -c 256 a
xxd: a: No such file or directory
$ pxxd -ps -c 256 a
Traceback (most recent call last):
  File "pxxd", line 56, in <module>
    xxd = HexDumper(args)
  File "hex_dumper.py", line 448, in __init__
    raise RuntimeError(f"{self.pname}: {self.infile}: No such file or directory")
RuntimeError: pxxd: a: No such file or directory
saspeh@u25nv:~$