cjdrake / pyeda

Python EDA
BSD 2-Clause "Simplified" License
301 stars 55 forks source link

Fixing None type has no update method #170

Closed kitaniman closed 1 year ago

kitaniman commented 1 year ago

Sometimes "_backtrack(self.restrict(aupnt)) "returns None since no solutions were found, Hence "soln.update(aupnt)" will raise an error. A quick fix is to check whether "soln" is None before calling "update(aupnt)".

cjdrake commented 1 year ago

Thanks!