Commit 3abb829c authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

catch unicode decoding error

parent 0409ac08
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -711,11 +711,13 @@ def main():
        # let's go
        options.func(options)
        exit(0)
    except Exception as e:
        error(u"%s." % e)
    except UnicodeDecodeError as e:
        error("Unable to decode some characters. Check your locale settings.")
    except KeyboardInterrupt:
        warn("Keyboard Interrupted")
        exit(1)
    except Exception as e:
        error(u"%s." % e)

# Entry point
if __name__ == '__main__':