Commit 31fde30e authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Manage ValueError ecxeption from fdsnextender

parent e7c3cafd
......@@ -138,8 +138,10 @@ def cli(configfile):
stat['is_permanent'] = True
else :
stat['is_permanent'] = False
stat['network'] = extender.extend(stat['network'], int(stat['year']))
# TODO: à revoir, la ligne suivante, c'est la honte
try:
stat['network'] = extender.extend(stat['network'], int(stat['year']))
except ValueError:
logger.warning("Network %s exists ?"%stat['network'])
stat['date'] = today
logger.debug(stat)
......
......@@ -6,7 +6,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup(
name='resifdatareporter',
version='0.7.6',
version='0.7.9',
description='Scans the resif data repository and compute metrics. Sends the result in influxdb or postgres',
long_description=readme,
long_description_content_type="text/markdown",
......@@ -18,7 +18,7 @@ setup(
license='GPL-3.0',
packages=find_packages(),
install_requires=[
'fdsnextender==0.3.1',
'fdsnextender>=0.3.2',
'Click==7.0',
'python-dateutil==2.7.5',
'PyYAML==5.1',
......
Supports Markdown
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