Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkaye committed Sep 20, 2023
1 parent 59306a7 commit 479ad5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions trafficlight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
adapter_shutdown,
loop_check_for_new_tests,
loop_cleanup_unresponsive_adapters,
stop_background_tasks,
interrupt_tasks,
)
from trafficlight.internals.testsuite import TestSuite
from trafficlight.store import add_testsuite, get_testsuites
Expand Down Expand Up @@ -113,8 +111,7 @@ def create_app(test_config: Optional[Dict[str, Any]] = None) -> Quart:
)
app.jinja_env.filters["delaytime"] = format_delaytime

async def on_done(f: Future) -> None:

async def on_done(f: Future[Any]) -> None:
await app.shutdown()

@app.before_serving
Expand Down
2 changes: 1 addition & 1 deletion trafficlight/internals/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def run(
# Treating an adapter that causes another type of exception as an error
self.state = "error"
self.exceptions.append(e.formatted_message)
except Exception as e:
except Exception:
# Treating everything else as an error as well... eg compilation failures
self.state = "error"
self.exceptions.append("".join(traceback.format_exc()))
Expand Down

0 comments on commit 479ad5e

Please sign in to comment.