[Bug 327239] [NEW] dput crashes with incorrect arguments

Launchpad Bug Tracker 327239 at bugs.launchpad.net
Thu Feb 17 09:51:53 UTC 2011


You have been subscribed to a public bug by Daniel Holbach (dholbach):

Binary package hint: dput

dput crashes when you supply a host argument that does not appear in
dput.cf. Instead of displaying a he;pful error message, it simply
crashes with a traceback like:

Traceback (most recent call last):
  File "/usr/bin/dput", line 930, in <module>
    main()
  File "/usr/bin/dput", line 706, in main
    config.set(args[0], args[0], "")
  File "/usr/lib/python2.5/ConfigParser.py", line 358, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'testhost'

It isn't much of a problem, it just might confuse new users if they have
set up their config wrong. IMO, it should display a simple error
message, such as "Specified host $x could not be found in dput config.
Please check your spelling or ~/dput.cf".

** Affects: dput (Ubuntu)
     Importance: Low
     Assignee: Cody A.W. Somerville (cody-somerville)
         Status: Fix Released

-- 
dput crashes with incorrect arguments
https://bugs.launchpad.net/bugs/327239
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.



More information about the Ubuntu-sponsors mailing list