'hp-uiscan -h' crashes with traceback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I tried to run hp-uiscan on my Fedora before I package it, so I tried to run the script with '-h' to see what the tool does and what options it has and the tool crashed with traceback:
[user@localhost hplip]$ hp-uiscan -h
HP Linux Imaging and Printing System (ver. 3.18.12)
Scan Utility ver. 2.2
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Traceback (most recent call last):
File "/usr/bin/
opts, device_uri, printer_name, mode, ui_toolkit, lang=mod.
File "/usr/share/
self.
File "/usr/share/
utils.
File "/usr/share/
for line in text_list:
TypeError: 'NoneType' object is not iterable
hp-uiscan does not have any definition of self.usage_data, so it gives traceback. I'm attaching the patch which creates basic help message and eliminates traceback. Would you mind adding it to the project?
Thank you in advance and have a nice day,
Zdenek
RHEL/Fedora hplip's maintainer
Hi Zdenek,
We have incorporated changes from the bug /bugs.launchpad .net/hplip/ +bug/1822573
https:/
Thanks,
Umesh