Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit 81f6ec4

Browse files
committed
fix a bug about installing theme
1 parent 00c55fc commit 81f6ec4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

catsup/themes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ def list():
8383

8484

8585
def install(path, g):
86-
theme = find(path)
87-
if theme:
86+
try:
87+
theme = find(path)
88+
except Exception:
89+
pass
90+
else:
8891
# Update theme
8992
if not os.path.exists(os.path.join(theme.path, '.git')):
9093
logging.warn("%s is not installed via git."

0 commit comments

Comments
 (0)