Skip to content

Commit 79933af

Browse files
committed
Use exceptions instead of printing strings and returning integers
Signed-off-by: jakub-nt <[email protected]>
1 parent ef31a0c commit 79933af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cfbs/commands.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,9 @@ def init_command(
230230
non_interactive,
231231
[cfbs_filename()],
232232
)
233-
except CFBSGitError as e:
234-
print(str(e))
233+
except CFBSGitError:
235234
os.unlink(cfbs_filename())
236-
return 1
235+
raise
237236

238237
print(
239238
"Initialized an empty project called '{}' in '{}'".format(

0 commit comments

Comments
 (0)