Skip to content

Commit cefb1ef

Browse files
committed
Fix Allow to use analyser_ prefix to osmose_run #1525
1 parent 6be9ae8 commit cefb1ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osmose_run.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ def main(options):
450450
sys.path.insert(0, analysers_path)
451451

452452
logger.log(logger.log_av_green+"loading analyses "+logger.log_ap)
453-
options.analyser = list(map(lambda analyser: analyser[len("analyser_"):] if analyser.startswith("analyser_") else analyser, options.analyser))
453+
if options.analyser:
454+
options.analyser = list(map(lambda analyser: analyser[len("analyser_"):] if analyser.startswith("analyser_") else analyser, options.analyser))
454455
analysers = {}
455456
for fn in os.listdir(analysers_path):
456457
if fn.startswith("analyser_") and fn.endswith(".py"):

0 commit comments

Comments
 (0)