Skip to content

Commit bfbbb03

Browse files
committed
improved constraint loading/saving
1 parent b4de9aa commit bfbbb03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CBModel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: [email protected]
22-
Last edit: $Author: bgoli $ ($Id: CBModel.py 640 2017-12-18 18:13:40Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: CBModel.py 641 2017-12-20 15:00:55Z bgoli $)
2323
2424
"""
2525
## gets rid of "invalid variable name" info
@@ -2891,6 +2891,8 @@ def importUserConstraints(self, filename):
28912891
Exports user constraints in json
28922892
28932893
"""
2894+
if filename is None:
2895+
return False
28942896
F = open(filename, 'r')
28952897
#din = json.load(F)
28962898
self.user_constraints = json.load(F)

0 commit comments

Comments
 (0)