Skip to content

Commit 5b4ff9e

Browse files
committed
Change raise to print return
1 parent 303e31e commit 5b4ff9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

editor/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55

66
def main():
77
if len(sys.argv) < 2:
8-
raise ValueError("Please specify a file.")
8+
print("Please specify a file.")
9+
return
910
elif not os.path.isdir(sys.argv[1]):
10-
raise ValueError("Please specify a valid directory.")
11+
print("Please specify a valid directory.")
12+
return
1113

1214
from .app import Application
1315
app = Application(sys.argv[1])

0 commit comments

Comments
 (0)