Skip to content

Commit

Permalink
Update mmengine/hooks/checkpoint_hook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida committed Mar 28, 2023
1 parent e833a00 commit 28499ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmengine/hooks/checkpoint_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def __init__(self,
if not (isinstance(published_keys, str)
or is_seq_of(published_keys, str) or published_keys is None):
raise TypeError(
'"published_keys" should be a str or a sequence of str or None, '
f'but got {type(published_keys)}')
'"published_keys" should be a str or a sequence of str or '
f'None, but got {type(published_keys)}')

if isinstance(published_keys, str):
published_keys = [published_keys]
Expand Down

0 comments on commit 28499ad

Please sign in to comment.