Skip to content

Commit a0c4512

Browse files
authored
Fix for exception parsing crossproc messages
Older <5.2 servers may not contain the `is_target` field. The test for its presence was incorrect. Fixing.
1 parent b113058 commit a0c4512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cbapi/response/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ def _lookup_privilege(privilege_code):
16201620
new_crossproc['tamper_flag'] = True
16211621

16221622
new_crossproc['is_target'] = False
1623-
if len(parts) > 7:
1623+
if len(parts) > 8:
16241624
if parts[8] == 'true':
16251625
new_crossproc['is_target'] = True
16261626

0 commit comments

Comments
 (0)