Skip to content

Commit b9cb2c2

Browse files
cleaned up some lint
1 parent b25e943 commit b9cb2c2

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

conda_requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ ninja
99
scikit-build-core
1010
cython-cmake
1111
python-build
12+
flake8

py_gd/__init__.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@
1010
from .py_gd import *
1111
"""
1212

13-
import sys
14-
import os
15-
1613
__version__ = "2.3.3"
1714

1815
try:
1916
from .py_gd import * # noqa: F401
2017
except ImportError as err:
21-
if str(err).startswith("DLL load failed:"):
22-
raise RuntimeError("Can't find dlls for libgd, libpng, and/or libz.\n"
23-
"This kludge is only written to support Anaconda installs\n",
24-
"you may need to add some logic for other library locations",
25-
) from err
26-
else:
27-
raise
18+
raise RuntimeError("Can't find dlls for libgd, libpng, and/or libz.\n"
19+
"This system should work with the dependencies from conda-forge\n",
20+
"and the binary wheels provided on PyPI"
21+
"Otherwise, you may need to figure out where they are ...",
22+
) from err

0 commit comments

Comments
 (0)