Update formatting.
This commit is contained in:
		
							parent
							
								
									b81f746c43
								
							
						
					
					
						commit
						3c9cd199de
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -28,7 +28,6 @@ class GeoIPHandler(object): | ||||||
| 
 | 
 | ||||||
|         self.logger.info('Opening persistent connection to the MaxMind DB...') |         self.logger.info('Opening persistent connection to the MaxMind DB...') | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|     def reader_manager(self, action=None): |     def reader_manager(self, action=None): | ||||||
|         if action == 'open': |         if action == 'open': | ||||||
|             try: |             try: | ||||||
|  | @ -78,8 +77,9 @@ class GeoIPHandler(object): | ||||||
| 
 | 
 | ||||||
|     def download(self): |     def download(self): | ||||||
|         tar_dbfile = abspath(join(self.data_folder, 'GeoLite2-City.tar.gz')) |         tar_dbfile = abspath(join(self.data_folder, 'GeoLite2-City.tar.gz')) | ||||||
|         maxmind_url = 'https://download.maxmind.com/app/geoip_download?edition_id={db}&suffix={suffix}&license_key={key}'.format( |         maxmind_url = ('https://download.maxmind.com/app/geoip_download?edition_id={db}&' | ||||||
|             db='GeoLite2-City', suffix='tar.gz', key=self.maxmind_license_key) |         'suffix={suffix}&license_key={key}').format(db='GeoLite2-City', suffix='tar.gz', | ||||||
|  |                                                     key=self.maxmind_license_key) | ||||||
|         downloaded = False |         downloaded = False | ||||||
| 
 | 
 | ||||||
|         retry_counter = 0 |         retry_counter = 0 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue