Skip to content

Commit

Permalink
Lint code.
Browse files Browse the repository at this point in the history
  • Loading branch information
brainbot-devops committed Aug 9, 2019
1 parent be3af6e commit 30bb58c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions scenario_player/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
from raiden.utils.cli import EnumChoiceType
from scenario_player import tasks
from scenario_player.exceptions import ScenarioAssertionError, ScenarioError
from scenario_player.exceptions.services import ServiceProcessException
from scenario_player.runner import ScenarioRunner
from scenario_player.services.common.app import ServiceProcess
from scenario_player.tasks.base import collect_tasks
from scenario_player.ui import ScenarioUI, attach_urwid_logbuffer
from scenario_player.utils import (
Expand Down
4 changes: 2 additions & 2 deletions scenario_player/services/utils/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def daemonize(pidfile: pathlib.Path, *, stdin="/dev/null", stdout="/dev/null", s
try:
if os.fork() > 0:
raise SystemExit(0) # Parent exit
except OSError as e:
except OSError:
raise RuntimeError("fork #1 failed.")

os.chdir("/")
Expand All @@ -82,7 +82,7 @@ def daemonize(pidfile: pathlib.Path, *, stdin="/dev/null", stdout="/dev/null", s
try:
if os.fork() > 0:
raise SystemExit(0)
except OSError as e:
except OSError:
raise RuntimeError("fork #2 failed.")

# Flush I/O buffers
Expand Down

0 comments on commit 30bb58c

Please sign in to comment.