except
, specify exception instead FLK-E722 20 try:
21 requests.get(url)
22 break
23 except: 24 print('Ajenti is not ready yet, still waiting...')
25 time.sleep(1)
26 print("\n--> Ajenti started")
30 try:
31 raid = RAIDManager()
32 return raid.arrays
33 except:34 return []
35
59 if hasattr(obj, x):
60 try:
61 delattr(obj, x)
62 except: 63 pass
64 return skip
65
Using except
without a specific exception can be error prone.