Commit c5669982 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch 'fix_imports' into '1.4.x'

[plotters] fix import sys

See merge request !21
parents 8b8550fd e4ebde2d
Pipeline #20112 canceled with stages
......@@ -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