Commit 801d0383 authored by jeaRRo's avatar jeaRRo

Correction erreur saisie code département

parent 3aecbb7f
......@@ -391,6 +391,9 @@ def main(departement: 'Analyse d\'un seul département'='all', monument: 'Analys
# print(len(listDep))
'''Mettre à jour les pages des départements de la liste'''
for dep in listDep:
if dep not in param.dic_dep:
print('Code département inconnu, Revoir votre frappe !')
exit(0)
''' Trouver le nom du fichier d'export '''
exportFile = export_url + '/' + export.get_export_filename(param.dic_dep[dep]['code'])
# print('exportFile : ', exportFile)
......
......@@ -44,7 +44,7 @@ import param
import mohist
from random import choice
# source random user-agent: http://edmundmartin.com/random-user-agent-requests-python/
desktop_agents = ['Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment