File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -168,13 +168,14 @@ def __repr__(self):
168
168
typeLen , quotedLen , assertedLen , literalLen = [
169
169
rtTuple [0 ] for rtTuple in rt ]
170
170
try :
171
- return ("<Partitioned SQL N3 Store: %s " +
172
- "contexts, %s classification assertions, " +
173
- "%s quoted statements, %s property/value " +
171
+ return ("<Partitioned SQL N3 Store: %s "
172
+ "contexts, %s classification assertions, "
173
+ "%s quoted statements, %s property/value "
174
174
"assertions, and %s other assertions>" % (
175
- len ([ ctx for ctx in self .contexts ()] ),
175
+ sum ( 1 for _ in self .contexts ()),
176
176
typeLen , quotedLen , literalLen , assertedLen ))
177
177
except Exception :
178
+ _logger .exception ('Error creating repr' )
178
179
return "<Partitioned SQL N3 Store>"
179
180
else :
180
181
return "<Partitioned unopened SQL N3 Store>"
You can’t perform that action at this time.
0 commit comments