mirror of
https://codeberg.org/hyperreal/archive-fandom-wiki
synced 2024-11-01 16:43:07 +01:00
fix: put mkdir in else clause for init
This commit is contained in:
parent
ef29e741f9
commit
eec1bc7211
@ -37,7 +37,7 @@ class FandomWiki:
|
|||||||
console.print("(2) You typed the name of the wiki incorrectly.")
|
console.print("(2) You typed the name of the wiki incorrectly.")
|
||||||
console.print("(3) The server hosting that wiki is down for some reason.\n")
|
console.print("(3) The server hosting that wiki is down for some reason.\n")
|
||||||
console.print(f"HTTP error: {http_err}")
|
console.print(f"HTTP error: {http_err}")
|
||||||
|
else:
|
||||||
if not self.site_dir.exists():
|
if not self.site_dir.exists():
|
||||||
self.site_dir.mkdir()
|
self.site_dir.mkdir()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user