mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Fix problem with parsing erroneous options that contain UTF-8.
This commit is contained in:
parent
3afd961cf7
commit
26b49b0807
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -383,7 +383,7 @@ def main(argv):
|
|||
if chgfix[1:] not in validoptions:
|
||||
Usage(argv[0], 'optimizer-options')
|
||||
sys.stderr.write(u"\nError: Unrecognized"
|
||||
u" optimizer option: %s\n" % chg)
|
||||
u" optimizer option: %s\n" % chg.decode('utf8'))
|
||||
return 1
|
||||
if chgfix[0] == '-':
|
||||
options.discard(chgfix[1:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue