Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmarks/gpu_benchmark_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def gpu_simulated_annealing(
# Get GPU info
try:
gpu_info = subprocess.check_output(['nvidia-smi', '--query-gpu=name', '--format=csv,noheader'], text=True).strip()
except:
except Exception:
gpu_info = "T4"

start_time = time.time()
Expand Down
2 changes: 1 addition & 1 deletion shared/block_synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def sync_blocks(self, start_index: int, end_index: int) -> bool:
for _ in range(num_producers):
try:
download_queue.put(None) # Sentinel value to stop producers
except:
except Exception:
pass # Queue might be full or closed

for p in producer_processes:
Expand Down
2 changes: 1 addition & 1 deletion tools/find_block_time_threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_mining_time(
elapsed = time.time() - start_time
try:
result = result_queue.get_nowait()
except:
except Exception:
result = None
else:
# No timeout - run directly
Expand Down