The real error here is that get_ppa_info_from_lp() has an “except:” line that catches all exceptions derived from BaseException, including KeyboardInterrupt and even SystemExit.
This is not recommended (see http://docs.python.org/3/howto/doanddont.html#except) and can lead to random bug errors like this one. I propose to change that line to “except NameError:” (which means that we failed to import urllib) or at least “except Exception:”. ** Changed in: software-properties (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1157900 Title: add-apt-repository crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1157900/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
