@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
yml 64 lines 983 Bytes
Raw
1 id: py-empty-except
2 valid:
3 - |
4 try:
5 work()
6 except ValueError as Exception:
7 pass
8 - |
9 try:
10 work()
11 except (error_type(Exception), ValueError):
12 pass
13 - |
14 try:
15 work()
16 except (FileNotFoundError, ValueError):
17 pass
18 - |
19 try:
20 work()
21 except FileNotFoundError:
22 pass
23 - |
24 try:
25 work()
26 except Exception:
27 logger.exception("Failed to complete work")
28 - |
29 try:
30 work()
31 except Exception:
32 raise
33 invalid:
34 - |
35 try:
36 work()
37 except (Exception,):
38 pass
39 - |
40 try:
41 work()
42 except (ValueError, Exception) as error:
43 pass
44 - |
45 try:
46 work()
47 except (BaseException):
48 pass
49 - |
50 try:
51 work()
52 except:
53 pass
54 - |
55 try:
56 work()
57 except Exception as error:
58 pass
59 - |
60 try:
61 work()
62 except BaseException:
63 # Best effort
64 pass