You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to #91 this was fixed in 1.9.94, but I am still seeing this (or similar) error message:
Traceback (most recent call last):
File "/home/modlink_cok_q/src/modlink/modlink/models/remote.py", line 103, in call
return self.connection.call(*args, **kwargs)
File "src/pyrfc/_pyrfc.pyx", line 409, in pyrfc._pyrfc.Connection.call
File "src/pyrfc/_pyrfc.pyx", line 1641, in pyrfc._pyrfc.fillFunctionParameter
File "src/pyrfc/_pyrfc.pyx", line 1692, in pyrfc._pyrfc.fillVariable
File "src/pyrfc/_pyrfc.pyx", line 1668, in pyrfc._pyrfc.fillTable
File "src/pyrfc/_pyrfc.pyx", line 1653, in pyrfc._pyrfc.fillStructureField
File "src/pyrfc/_pyrfc.pyx", line 1710, in pyrfc._pyrfc.fillVariable
File "src/pyrfc/_pyrfc.pyx", line 1817, in pyrfc._pyrfc.fillString
AttributeError: 'NoneType' object has no attribute 'encode'
If the string is optional, I think it should be valid do pass in my_string=None which should have the same effect as don't providing my_string.
If it is not optional and the RFC has a default for it, the default should get used, if you provide my_string=None
The text was updated successfully, but these errors were encountered:
Thanks for the feature request. None is rejected because users appreciate catching type errors when None unintentionally passed instead of string, or any other parameter/variable type. Skipping None values in inbound processing could be considered as option, in future releases. The error message is now more informative.
According to #91 this was fixed in 1.9.94, but I am still seeing this (or similar) error message:
If the string is optional, I think it should be valid do pass in
my_string=None
which should have the same effect as don't providingmy_string
.If it is not optional and the RFC has a default for it, the default should get used, if you provide
my_string=None
The text was updated successfully, but these errors were encountered: