~martijnbraam/sysls

5250766eff706f0dfe60dd48dcf0f0d1b613311f — Thomas Lake 3 months ago 0c34202 master
Catch invalid unicode data and print error instead
1 files changed, 2 insertions(+), 1 deletions(-)

M sysls/__main__.py
M sysls/__main__.py => sysls/__main__.py +2 -1
@@ 35,7 35,8 @@ def list(path):
                print(display, f'[-{errno.errorcode[e.errno]}]')
            else:
                print(display, e)

        except UnicodeDecodeError as e:
            print(display, "[ Unprintable data ]")

def main():
    parser = argparse.ArgumentParser()