Changeset 3538 for lliurex-detect


Ignore:
Timestamp:
Feb 6, 2017, 5:19:25 PM (3 years ago)
Author:
mabarracus
Message:

Fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-detect/trunk/fuentes/lliurex-detect.install/usr/bin/lliurex-detect

    r3537 r3538  
    262262               
    263263        else:
    264             result.append(results)
     264            if type(list()) == type(results):
     265                result.extend(results)
     266            elif type(str()) == type(results):
     267                result.append(results)
     268            else:
     269                raise Exception('Unknown result type to store')
    265270    elif action == 'print':
    266271        if exit_return_code_mode != False:
     
    360365        print(get_history_version().rstrip())
    361366#end lliurex-version options
    362 
    363367    store_result(action='print')
    364368except Exception as e:
Note: See TracChangeset for help on using the changeset viewer.