Skip to content

Commit

Permalink
Fix create project error
Browse files Browse the repository at this point in the history
  • Loading branch information
nietsuu committed Aug 1, 2023
1 parent a9954ae commit 5f28910
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions create_pipenv_project/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.2"
__version__ = "0.3"

import os
import shutil
Expand Down Expand Up @@ -76,7 +76,11 @@ def _copy_user_files(self, project_name: str) -> None:
user_files_dirpath = os.path.join(cpp_dirpath, "user_files")

for filename in os.listdir(user_files_dirpath):
paste_dir = mapping[filename]
try:
paste_dir = mapping[filename]
except KeyError:
continue

shutil.copy(
os.path.join(user_files_dirpath, filename),
paste_dir,
Expand Down

0 comments on commit 5f28910

Please sign in to comment.