Fix the error on non-number priority
The priority is not a number: we consider it 0 as a default
This commit is contained in:
		 Florent Le Coz
					Florent Le Coz
				
			
				
					committed by
					
						 Lance Stout
						Lance Stout
					
				
			
			
				
	
			
			
			 Lance Stout
						Lance Stout
					
				
			
						parent
						
							3625573c7d
						
					
				
				
					commit
					93fbcad277
				
			| @@ -129,7 +129,11 @@ class Presence(RootStanza): | ||||
|         p = self._getSubText('priority') | ||||
|         if not p: | ||||
|             p = 0 | ||||
|         try: | ||||
|             return int(p) | ||||
|         except ValueError: | ||||
|             # The priority is not a number: we consider it 0 as a default | ||||
|             return 0 | ||||
|  | ||||
|     def getType(self): | ||||
|         """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user