Skip to content

Commit

Permalink
Corrected exception text in ChromosomeRangeFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
BharatRajT committed May 9, 2019
1 parent 264145d commit 4fe9b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygenetic/ChromosomeFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ def createChromosome(self):
chromosome = random.sample(range(self.minValue,self.maxValue+1), self.noOfGenes)
return chromosome
except:
raise Exception('Unable to generated chromosome from given max %s min %s noOfGenes %s'%(self.minValue,self.maxValue,self.noOfGenes))
raise Exception('Unable to generate chromosome from given min %s max %s noOfGenes %s'%(self.minValue,self.maxValue,self.noOfGenes))

0 comments on commit 4fe9b5d

Please sign in to comment.