Skip to content

Commit

Permalink
Change sys.exit to Raise.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Aug 23, 2021
1 parent b97a4ac commit fb60095
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/blackd/__init__.py
Expand Up @@ -11,13 +11,11 @@
from aiohttp import web
import aiohttp_cors
except ImportError as ie:
print(
raise RuntimeError(
f"aiohttp dependency is not installed: {ie}. "
+ "Please re-install black with the '[d]' extra install "
+ "to obtain aiohttp_cors: `pip install black[d]`",
file=sys.stderr,
+ "to obtain aiohttp_cors: `pip install black[d]`"
)
sys.exit(-1)

import black
from black.concurrency import maybe_install_uvloop
Expand Down

0 comments on commit fb60095

Please sign in to comment.