Subversion Repositories SmartDukaan

Rev

Rev 3443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3443 Rev 3448
Line 96... Line 96...
96
	public double getScore() {
96
	public double getScore() {
97
		if(this.py == null) {
97
		if(this.py == null) {
98
			throw new IllegalStateException("Exec is not called yet");
98
			throw new IllegalStateException("Exec is not called yet");
99
		}
99
		}
100
		
100
		
101
		PyFloat score;
-
 
102
		try{
101
		
103
			 score = (PyFloat)this.py.get("score");
102
		PyFloat score = (PyFloat)this.py.get("score");
104
		}catch(Exception e){
-
 
105
			Utils.severe("No score returned from script");
-
 
106
			score = null;
-
 
107
		}
-
 
108
		
103
		
109
		if(score == null) {
104
		if(score == null) {
110
			CMPRuleDefinition cmpRuleDef = 
105
			CMPRuleDefinition cmpRuleDef = 
111
				this.expandedCMPSlideRuleDefinition.getCMPRuleDefinition();
106
				this.expandedCMPSlideRuleDefinition.getCMPRuleDefinition();
112
			
107