Skip to content

Commit d53ebd9

Browse files
d-w-mooretrel
authored andcommitted
[#339] correction to README regarding RULE_ENGINE_ERROR
This error code had been erroneously referred to in README as "RE_RULE_ENGINE_ERROR". This is now corrected.
1 parent bfe048e commit d53ebd9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ side. For example, if the Python rule engine is configured, and the following r
582582
we can trap the error thus::
583583

584584
try:
585-
Rule( body = 'python_rule', instance_name = 'irods_rule_engine_plugin-python-instance' ).execute()
586-
except irods.exception.RE_RULE_ENGINE_ERROR:
585+
Rule( session, body = 'python_rule', instance_name = 'irods_rule_engine_plugin-python-instance' ).execute()
586+
except irods.exception.RULE_ENGINE_ERROR:
587587
print('Rule execution failed!')
588588
exit(1)
589589
print('Rule execution succeeded!')
@@ -592,9 +592,9 @@ As fail actions from native rules are not thrown by default (refer to the help t
592592
anticipate these and prefer to catch them as exceptions, we can do it this way::
593593

594594
try:
595-
Rule( body = 'python_rule', instance_name = 'irods_rule_engine_plugin-python-instance'
595+
Rule( session, body = 'python_rule', instance_name = 'irods_rule_engine_plugin-python-instance'
596596
).execute( acceptable_errors = () )
597-
except (irods.exception.RE_RULE_ENGINE_ERROR,
597+
except (irods.exception.RULE_ENGINE_ERROR,
598598
irods.exception.FAIL_ACTION_ENCOUNTERED_ERR) as e:
599599
print('Rule execution failed!')
600600
exit(1)

0 commit comments

Comments
 (0)