Changeset 3242


Ignore:
Timestamp:
Nov 13, 2010 3:28:57 AM (10 years ago)
Author:
wehart
Message:

Type fix.

Updating error message.

Location:
coopr.pyomo/trunk/coopr/pyomo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/__init__.py

    r2359 r3242  
    3636    for entrypoint in pkg_resources.iter_entry_points('coopr.pyomo'):
    3737        plugin_class = entrypoint.load()
    38 except:
    39     pass
     38except Exception, err:
     39    print "Error loading coopr.pyomo entry points:",str(err)
    4040
  • coopr.pyomo/trunk/coopr/pyomo/base/PyomoModel.py

    r3203 r3242  
    424424        problem_writer = coopr.opt.WriterFactory(format)
    425425        if problem_writer is None:
    426             msg = "Cannot write model in format '%s'': no model writer "      \
     426            msg = "Cannot write model in format '%s': no model writer "      \
    427427                  'registered for that format'
    428428            raise ValueError, msg % str(format)
Note: See TracChangeset for help on using the changeset viewer.