~usb-creator-hackers/usb-creator/trunk

« back to all changes in this revision

Viewing changes to debian/source_usb-creator.py

  • Committer: Brian Murray
  • Date: 2015-04-22 18:03:32 UTC
  • Revision ID: brian@canonical.com-20150422180332-vxwoky0hkpcc3wuq
Only try to add a udisks dump to the apport hook, if the udisks command is
available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
    attach_file_if_exists(report, log_file, 'UsbCreatorLog')
15
15
 
16
16
    report['UsbDevices'] = usb_devices()
17
 
    report['UDisksDump'] = apport.hookutils.command_output(['udisks', '--dump'])
 
17
    if apport.hookutils.command_available('udisks'):
 
18
        report['UDisksDump'] = apport.hookutils.command_output(['udisks', '--dump'])