Browse Source

Fix under py2, a hachoir config value, without 'readline' sys.module, using the `--daemon` SG startup option, fails.

Change properly output help, without the false exception prepended.
tags/release_0.25.1
JackDandy 4 years ago
parent
commit
92959a9db5
  1. 1
      CHANGES.md
  2. 2
      lib/hachoir_py2/core/config.py
  3. 2
      sickgear.py

1
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)

2
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

2
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())

Loading…
Cancel
Save