Changeset 1f9c361 for fedd/federation


Ignore:
Timestamp:
Sep 20, 2013 10:34:47 AM (11 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
467cd2e
Parents:
67fa1cf
Message:

Error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/access.py

    r67fa1cf r1f9c361  
    357357
    358358        cmd = "%s %s" % (self.userconfcmd, project)
    359         conf = subprocess.call(shlex.split(cmd),
     359        try:
     360            conf = subprocess.call(shlex.split(cmd),
    360361                stdout=cf, stderr=dev_null, close_fds=True)
     362        except EnvironmentError,e:
     363            raise service_error(service_error.internal,
     364                    "Could not run userconf command: %s %s" \
     365                            % (e.filename, e.strerror))
    361366
    362367        self.auth.set_attribute(confid, "/%s" % str(confid))
Note: See TracChangeset for help on using the changeset viewer.