Changeset 2219 for coopr.opt/trunk/coopr


Ignore:
Timestamp:
Feb 1, 2010 12:13:03 AM (10 years ago)
Author:
wehart
Message:

Bug fix: verify that soln_file is not None before using it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/coopr/opt/solver/shellcmd.py

    r2216 r2219  
    157157              # instead being automatically derived from the input lp/nl filename. so, we may
    158158              # have to clean it up manually.
    159               if os.path.exists(self.soln_file):
    160                  os.remove(self.soln_file)
     159              if not self.soln_file is None and os.path.exists(self.soln_file):
     160                os.remove(self.soln_file)
    161161
    162162        return results
Note: See TracChangeset for help on using the changeset viewer.