Bug 1005684 - Crashes if -u specified before the generator
Summary: Crashes if -u specified before the generator
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-business-cards
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ian Weller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-09 07:34 UTC by Pierre-YvesChibon
Modified: 2013-09-09 07:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-09 07:49:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pierre-YvesChibon 2013-09-09 07:34:07 UTC
Crashes for me and does not honor the -u option


$ fedora-business-cards -u=pingou --pdf fedora
Login to FAS:
Username:pingou
Password
Traceback (most recent call last):
  File "/usr/bin/fedora-business-cards", line 9, in <module>
    load_entry_point('fedora-business-cards==1.beta1', 'console_scripts', 'fedora-business-cards')()
  File "/usr/lib/python2.7/site-packages/fedora_business_cards/frontend/cmdline.py", line 137, in main
    gen.collect_information()
  File "/usr/lib/python2.7/site-packages/fedora_business_cards/generators/fedora.py", line 74, in collect_information
    self.fields['name'] = userinfo["human_name"]
KeyError: 'human_name'

Note that using ``fedora-business-cards --pdf fedora -u pingou`` seems to work.

Comment 1 Ian Weller 2013-09-09 07:49:27 UTC
-u=pingou is not valid with Python's optparse


Note You need to log in before you can comment on or make changes to this bug.