lbiester commited on
Commit
162a5cd
·
verified ·
1 Parent(s): a59fdb5

Update refresh_bots.py

Browse files
Files changed (1) hide show
  1. refresh_bots.py +11 -1
refresh_bots.py CHANGED
@@ -43,8 +43,18 @@ class BotCache:
43
  all_classes.extend(classes)
44
 
45
  bots = {}
 
46
  for cls in all_classes:
47
- bots[cls.get_name()] = cls
 
 
 
 
 
 
 
 
 
48
 
49
  return bots
50
 
 
43
  all_classes.extend(classes)
44
 
45
  bots = {}
46
+ error_num = 0
47
  for cls in all_classes:
48
+ try:
49
+ bots[cls.get_name()] = cls
50
+ except:
51
+ try:
52
+ bots[cls().get_name()] = cls
53
+ except:
54
+ bots[f"Error fetching name {error_num}"] = cls
55
+ error_num += 1
56
+
57
+
58
 
59
  return bots
60