Changeset 4487 for install


Ignore:
Timestamp:
Jun 13, 2020 3:50:13 PM (16 months ago)
Author:
toby
Message:

abort on Complete Molecule optional; bypass decode error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install/bootstrap.py

    r4477 r4487  
    120120    '''
    121121    if isinstance(arg,str): return arg
    122     if isinstance(arg,bytes): return arg.decode()
     122    if isinstance(arg,bytes):
     123        try:
     124            return arg.decode()
     125        except:
     126            print('Decode error')
     127            return arg
    123128    if isinstance(arg,list):
    124129        return [MakeByte2str(i) for i in arg]
Note: See TracChangeset for help on using the changeset viewer.