We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcf1d13 commit 60bccfbCopy full SHA for 60bccfb
1 file changed
README.md
@@ -150,10 +150,10 @@ With the below rule contained anywhere in the Python rulebase:
150
```
151
def testRule(rule_args, callback, rei):
152
from irods_errors import USER_FILE_DOES_NOT_EXIST
153
- check_err = lambda e,errcode: e.message.startswith('[iRods__Error__Code:{}]'.format(errcode))
+ check_err = lambda e,errcode: str(e).startswith('[iRods__Error__Code:{}]'.format(errcode))
154
try:
155
ret_val = callback.msiObjStat(rule_args[0], irods_types.RodsObjStat())
156
- except RuntimeError, e:
+ except RuntimeError as e:
157
if check_err(e, USER_FILE_DOES_NOT_EXIST):
158
callback.writeLine('serverLog', 'ERROR in testRule: "'+rule_args[0]+'" not found')
159
else:
0 commit comments