Changeset 0b123ff for fedd


Ignore:
Timestamp:
Nov 23, 2008 4:36:45 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
721705e9
Parents:
5576a47
Message:

More comprehensible error message for a bad service parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd.py

    r5576a47 r0b123ff  
    389389if opts.services:
    390390    for s in opts.services:
    391         h, p, t  = s.split(':')
     391        try:
     392            h, p, t  = s.split(':')
     393        except ValueError:
     394            sys.exit("Invalid services specification: %s" % s)
    392395
    393396        if not h: h = opts.host
Note: See TracChangeset for help on using the changeset viewer.