Commit e4ebde2d authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[plotters] fix import sys

parent 8b8550fd
Pipeline #19995 passed with stages
in 28 minutes and 1 second
......@@ -57,6 +57,7 @@ Options:
"""
import os
import sys
import simplejson
import collections
from .dataformats import pull as dataformats_pull
......@@ -188,7 +189,6 @@ def plot(webapi, prefix, names, force, need_data_sample, inputdata, outputimage,
if not core_plotter.valid:
message = 'Plotter %s is invalid' % core_plotter.name
print(message)
import sys
sys.exit()
sample_data = None
......@@ -201,7 +201,6 @@ def plot(webapi, prefix, names, force, need_data_sample, inputdata, outputimage,
if inputdata is None and not need_data_sample:
message = 'Error: Missing --sample_data argument or inputdata'
print(message)
import sys
sys.exit()
elif inputdata is not None:
if type(inputdata) is str:
......@@ -213,7 +212,6 @@ def plot(webapi, prefix, names, force, need_data_sample, inputdata, outputimage,
else:
message = 'Error: inputdata should be dict or str type'
print(message)
import sys
sys.exit()
# output
......
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