diff --git a/CHANGES.md b/CHANGES.md index ed51b1c..00d9060 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,6 +23,7 @@ * Update urllib3 1.26.1 (7675532) to 1.26.2 (eae04d6) * Change don't remember folder used during auto processing * Fix update runner using shell that doesn't have env path to git binary in Linux (use `git pull` to get this fix) +* Fix under py2, a hachoir config value, without 'readline' sys.module, using the `--daemon` SG startup option, fails ### 0.23.2 (2020-11-21 18:40:00 UTC) diff --git a/lib/hachoir_py2/core/config.py b/lib/hachoir_py2/core/config.py index e8a2a2f..583d031 100644 --- a/lib/hachoir_py2/core/config.py +++ b/lib/hachoir_py2/core/config.py @@ -8,7 +8,7 @@ import os max_string_length = 40 # Max. length in characters of GenericString.display max_byte_length = 14 # Max. length in bytes of RawBytes.display max_bit_length = 256 # Max. length in bits of RawBits.display -unicode_stdout = True # Replace stdout and stderr with Unicode compatible objects, disable for readline or ipython +unicode_stdout = False # Replace stdout and stderr with Unicode compatible objects, disable for readline or ipython # Global options debug = False # Display many informations usefull to debug diff --git a/sickgear.py b/sickgear.py index 66c322b..ca52f2a 100755 --- a/sickgear.py +++ b/sickgear.py @@ -733,6 +733,8 @@ if '__main__' == __name__: except IOError as e: if e.errno != errno.EINTR: raise + except SystemExit as e: + print('%s' % ex(e)) except (BaseException, Exception) as e: import traceback print(traceback.format_exc())