diff --git a/bin/is b/bin/is index 53e7f898e867c08b6c5b5c7e1c7407ba1cb4ac71..a5e3a288898633228aebc71c1472d08a3e6fc5c3 100755 --- a/bin/is +++ b/bin/is @@ -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__':