← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 407: changed suggetions object when fails to empty list [] rather then None object

 

------------------------------------------------------------
revno: 407
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Tue 2012-10-30 17:30:11 +0100
message:
  changed suggetions object when fails to empty list [] rather then None object
modified:
  src/alfanous/Outputs.py


--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git

Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous/Outputs.py'
--- src/alfanous/Outputs.py	2012-08-24 08:58:42 +0000
+++ src/alfanous/Outputs.py	2012-10-30 16:30:11 +0000
@@ -315,7 +315,7 @@
 		try:
 			output = self.QSE.suggest_all( unicode( query.replace( "\\", "" ), 'utf8' ) ).items()
 		except Exception:
-			output = None
+			output = []
 		return {"suggest":output}
 
 	def _search( self, flags ):