Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f61bcb

Browse files
committed
add a try/except block for the extension separator code
1 parent0771345 commit2f61bcb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎python-standard-library/extension-separator/extension_separator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@
6262
dst=os.path.join(path,folder_name,basename)
6363
ifverbose:
6464
print(f"[*] Moving{file} to{dst}")
65-
shutil.move(file,dst)
65+
try:
66+
shutil.move(file,dst)
67+
exceptExceptionase:
68+
print(f"[!] Error:{e}")
69+
continue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp