Skip to content
Snippets Groups Projects
Commit 07c93591 authored by Jeremy M Fee's avatar Jeremy M Fee Committed by Claycomb, Abram Earl
Browse files

Fix linting errors

parent 3257e52f
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import argparse
import sys
from io import BytesIO
from obspy.core import Stream, UTCDateTime
from .algorithm import algorithms
from .algorithm import algorithms, AlgorithmException
from .PlotTimeseriesFactory import PlotTimeseriesFactory
from .StreamTimeseriesFactory import StreamTimeseriesFactory
from . import TimeseriesUtility, Util
......@@ -216,7 +216,8 @@ class Controller(object):
return
algorithm = self._algorithm
if algorithm.get_starttime() is not None:
raise Error('Stateful algorithms should NOT use run_as_update')
raise AlgorithmException(
'Stateful algorithms cannot use run_as_update')
input_channels = options.inchannels or \
algorithm.get_input_channels()
output_observatory = options.output_observatory
......
......@@ -125,7 +125,6 @@ class Algorithm(object):
"""
return None
@classmethod
def add_arguments(cls, parser):
"""Add command line arguments to argparse parser.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment