Skip to content

Commit 2f6cc24

Browse files
committed
code style
1 parent fea2f7e commit 2f6cc24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/executions_cancel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def run(self, ids):
1212
for i in ids:
1313
try:
1414
res = self.client.executions.delete_by_id(instance_id=i)
15-
if 'faultstring' in res and res['faultstring']:
15+
if res.get('faultstring'):
1616
success = False
1717
except Exception as exc:
1818
result[i] = str(exc)

0 commit comments

Comments
 (0)