Skip to content

Commit 402cf7a

Browse files
committed
fix lint errors
1 parent 4814493 commit 402cf7a

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

st2actions/tests/unit/test_notifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from st2common.constants.action import LIVEACTION_COMPLETED_STATES
2828
from st2common.constants.action import LIVEACTION_STATUSES
2929
from st2common.constants.triggers import INTERNAL_TRIGGER_TYPES
30-
from st2common.models.api.action import LiveActionAPI
3130
from st2common.models.db.action import ActionDB
3231
from st2common.models.db.execution import ActionExecutionDB
3332
from st2common.models.db.liveaction import LiveActionDB

st2common/st2common/services/workflows.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,18 +1193,14 @@ def request_next_tasks(wf_ex_db, task_ex_id=None):
11931193
# Request the task execution.
11941194
request_task_execution(wf_ex_db, st2_ctx, task)
11951195
except Exception as e:
1196-
import sys
1197-
import traceback
11981196

11991197
exc_type, exc_value, exc_traceback = sys.exc_info()
1200-
traceback_in_var = traceback.format_tb(exc_traceback)
12011198
msg = 'Failed task execution for task "%s", route "%s".'
12021199
msg = msg % (task["id"], str(task["route"]))
12031200
update_progress(
12041201
wf_ex_db, "%s %s" % (msg, str(e)), severity="error", log=False
12051202
)
1206-
LOG.error(e, exc_info=True)
1207-
LOG.exception(msg)
1203+
LOG.exception(msg, exc_info=True)
12081204

12091205
fail_workflow_execution(str(wf_ex_db.id), e, task=task)
12101206
return

st2common/tests/unit/test_db_fields.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
from st2common.models.db import MongoDBAccess
3838
from st2common.fields import JSONDictField
3939
from st2common.fields import JSONDictEscapedFieldCompatibilityField
40-
from st2common.fields import JSONDictFieldCompressionAlgorithmEnum
41-
from st2common.fields import JSONDictFieldSerializationFormatEnum
4240

4341
from st2tests import DbTestCase
4442

0 commit comments

Comments
 (0)