Skip to content

Commit 4467887

Browse files
pre-commit-ci[bot]adityawasudeo
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b026452 commit 4467887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ipykernel/zmqshell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import contextvars
1818
import os
1919
import sys
20-
from subprocess import CalledProcessError
2120
import threading
2221
import typing
2322
import warnings
2423
from pathlib import Path
24+
from subprocess import CalledProcessError
2525

2626
from IPython.core import page
2727
from IPython.core.autocall import ZMQExitAutocall
@@ -790,7 +790,7 @@ def system_piped(self, cmd):
790790
exit_code = system(self.var_expand(cmd, depth=1))
791791
self.user_ns["_exit_code"] = exit_code
792792

793-
if getattr(self, 'system_raise_on_error', False) and exit_code != 0:
793+
if getattr(self, "system_raise_on_error", False) and exit_code != 0:
794794
raise CalledProcessError(exit_code, cmd)
795795

796796
# Ensure new system_piped implementation is used

0 commit comments

Comments
 (0)