Skip to content

Improve Error Handling#78

Open
lavesh-37 wants to merge 1 commit intoShpota:mainfrom
lavesh-37:patch-1
Open

Improve Error Handling#78
lavesh-37 wants to merge 1 commit intoShpota:mainfrom
lavesh-37:patch-1

Conversation

@lavesh-37
Copy link

try:
os.mkdir(directory)
except OSError as e:
logging.error(f"Failed to create directory: {e}")
sys.exit(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant