Weather: refer to the right object in prev. commit
This commit is contained in:
		
							parent
							
								
									e69766e71e
								
							
						
					
					
						commit
						7b2e3fa9aa
					
				| @ -232,7 +232,7 @@ class Weather(Module): | |||||||
|             # ok, try to see if the ambiguous results stuff will help |             # ok, try to see if the ambiguous results stuff will help | ||||||
|             self.log.debug("potentially ambiguous results, checking") |             self.log.debug("potentially ambiguous results, checking") | ||||||
|             try: |             try: | ||||||
|                 results = condition_data['response']['results'] |                 results = forecast_data['response']['results'] | ||||||
|                 reply = "Multiple results, try one of the following zmw codes:" |                 reply = "Multiple results, try one of the following zmw codes:" | ||||||
|                 for res in results[:-1]: |                 for res in results[:-1]: | ||||||
|                     q = res['l'].strip('/q/') |                     q = res['l'].strip('/q/') | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user