Missed renaming dir

This commit is contained in:
Adrian Woodley
2021-10-08 12:25:59 +08:00
parent 5549bd0fdc
commit 654b7fc054

View File

@@ -43,7 +43,7 @@ def load_DB():
sys.exit('file {}, line {}: {}'.format(csv_locations_file, csv_locations_reader.line_num, error)) sys.exit('file {}, line {}: {}'.format(csv_locations_file, csv_locations_reader.line_num, error))
if COUNTRYCODE: if COUNTRYCODE:
country_blocks_file = root + '/' + dir + '/' + 'GeoLite2-Country-Blocks-IPv4.csv' country_blocks_file = root + '/' + archive_dir + '/' + 'GeoLite2-Country-Blocks-IPv4.csv'
with open(country_blocks_file, newline='') as csv_country_blocks_file: with open(country_blocks_file, newline='') as csv_country_blocks_file:
csv_country_blocks_reader = csv.DictReader(csv_country_blocks_file) csv_country_blocks_reader = csv.DictReader(csv_country_blocks_file)
try: try: