Skip to content

Commit

Permalink
fix(error-handling): fix pyrfc exception string representation bug in…
Browse files Browse the repository at this point in the history
… 2.8.1; close #314
  • Loading branch information
bsrdjan committed Apr 21, 2023
1 parent fd01d48 commit 9c1310a
Show file tree
Hide file tree
Showing 14 changed files with 34,323 additions and 37,692 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
setup_requires=["setuptools-git"],
extras_require={':"linux" in sys_platform': ["cython"]},
cmdclass=CMDCLASS, # type: ignore
ext_modules=cythonize(PYRFC_EXT, annotate=True, compiler_directives={"language_level": "1"}) # type: ignore
ext_modules=cythonize(PYRFC_EXT, annotate=True) # type: ignore
if BUILD_CYTHON
else [PYRFC_EXT], # type: ignore
test_suite=MODULE_NAME,
Expand Down
10 changes: 5 additions & 5 deletions src/pyrfc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
ExternalRuntimeError,
)

from ._utils import py_to_string, string_to_py

try:
from ._cyrfc import (
RfcParameterDirection,
RfcFieldType,
get_nwrfclib_version,
py_to_string,
string_to_py,
reload_ini_file,
set_ini_file_directory,
set_cryptolib_path,
Expand All @@ -43,6 +41,7 @@
language_sap_to_iso,
cancel_connection,
Connection,
ConnectionParameters,
Decimal,
Throughput,
TypeDescription,
Expand All @@ -51,7 +50,8 @@
UnitCallType,
UnitState,
RCStatus,
ConnectionParameters,
RfcParameterDirection,
RfcFieldType
)
except ModuleNotFoundError as ex:
if "'src.pyrfc._cyrfc'" in ex.msg:
Expand Down
Loading

0 comments on commit 9c1310a

Please sign in to comment.