Skip to content

Commit

Permalink
suprress exception in wandb.finish
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjansson committed Sep 4, 2024
1 parent 6aee89b commit 1d7d755
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wandb_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pathlib import Path
from typing import Any, Sequence
from contextlib import suppress
import wandb
from wandb.sdk.wandb_settings import Settings

Expand Down Expand Up @@ -40,4 +41,5 @@ def save_weights(self, lora_path: Path):
wandb.save(lora_path)

def finish(self):
wandb.finish()
with suppress(Exception):
wandb.finish()

0 comments on commit 1d7d755

Please sign in to comment.