genouest / biomaj-watcher

Web interface for Biomaj management
1 stars 4 forks source link

pserver crashed when 'celery.queue' not defined in 'global.properties' #16

Closed horkko closed 8 years ago

horkko commented 8 years ago

HI,

I've just started using biomaj-watcher and I found a small issue. If celerery.queue is not defined in global.properties, the application pserver does not start and crahes:

...
  File "/pasteur/services/banques/biomaj/biomaj3/lib/python2.7/site-packages/venusian-1.0-py2.7.egg/venusian/__init__.py", line 205, in scan
    __import__(modname)
  File "/pasteur/services/banques/biomaj/biomaj3/biomaj-watcher/biomajwatcher/background.py", line 7, in <module>
    queue = BiomajConfig.global_config.get('GENERAL', 'celery.queue')
  File "/usr/local/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'celery.queue' in section: 'GENERAL'

Could it be possible to only warn ? I do not intend to use celerey at all with biomaj-watcher.

Emmanuel