Skip to content

Commit 237a6fb

Browse files
committed
docs: fix readme code example
1 parent 8c10533 commit 237a6fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ As previously mentioned, all of Moe's music management logic and functionality i
2727
#!/usr/bin/env python3
2828
2929
import argparse
30-
import pathlib
30+
from pathlib import Path
3131
3232
from moe.config import Config, ConfigValidationError
3333
from moe.library import Album
@@ -36,8 +36,8 @@ As previously mentioned, all of Moe's music management logic and functionality i
3636
3737
def main():
3838
try:
39-
config.Config(config_dir=Path.home() / ".config" / "my_script", init_db=False)
40-
except config.ConfigValidationError as err:
39+
Config(config_dir=Path.home() / ".config" / "my_script", init_db=False)
40+
except ConfigValidationError as err:
4141
raise SystemExit(1) from err
4242
4343
parser = argparse.ArgumentParser(
@@ -47,7 +47,7 @@ As previously mentioned, all of Moe's music management logic and functionality i
4747
parser.add_argument("mb_id", help="musicbrainz id of the album to fetch")
4848
args = parser.parse_args()
4949
50-
album = Album.from_dir(pathlib.Path(args.path))
50+
album = Album.from_dir(Path(args.path))
5151
5252
album.merge(moe_musicbrainz.get_album_by_id(args.mb_id), overwrite=True)
5353

0 commit comments

Comments
 (0)