Skip to content

Commit f27fce1

Browse files
committed
fix: ExcaptionHandler.validateArgs logic bug fixed
1 parent 6680ec1 commit f27fce1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎python_framework/api/src/service/ExceptionHandler.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ def validateArgs(resourceInstance, resourceInstanceMethod, objectRequest, expect
108108
) or (
109109
ObjectHelper.isNotList(expecteObjectClass) and Serializer.isSerializerList(objectRequest)
110110
) or (
111-
not ReflectionHelper.getClassName(objectRequest) == ReflectionHelper.getName(expecteObjectClass)
111+
(
112+
not ReflectionHelper.getClassName(objectRequest) == ReflectionHelper.getName(expecteObjectClass)
113+
) and (
114+
not isinstance(objectRequest, expecteObjectClass)
115+
)
112116
)
113117
):
114118
typeComparison = f'type(objectRequest: {objectRequest}): {type(objectRequest)}'

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
sudo ln -s /usr/local/bin/pipX.Y /usr/bin/pip
1616
''')
1717

18-
VERSION = '0.4.18'
18+
VERSION = '0.4.19'
1919

2020
NAME = 'python_framework'
2121
PACKAGE_NAME = NAME

0 commit comments

Comments
 (0)