Ticket #80 (new defect)

Opened 2 years ago

cleanly exit if unprivileged user tries to run the NWU cli interface

Reported by: yvesjm Assigned to: somebody
Priority: major Milestone: 0.3.0
Component: server Version:
Keywords: Cc:

Description

yvesjm@zico:~$ nwu view 1 packages
Traceback (most recent call last):
  File "/usr/bin/nwu", line 229, in ?
    main()
  File "/usr/bin/nwu", line 88, in main
    hub.begin()
  File "/var/lib/python-support/python2.4/nwu_server/db/setup.py", line 196, in __getattr__
    self.set_hub()
  File "/var/lib/python-support/python2.4/nwu_server/db/setup.py", line 203, in set_hub
    cfg = read_conf()
  File "/var/lib/python-support/python2.4/nwu_server/db/setup.py", line 43, in __init__
    db_type = config.get("database", "type")
  File "/usr/lib/python2.4/ConfigParser.py", line 511, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'database'


-->