Skip to content

Commit 03ef6e8

Browse files
authored
Merge pull request #147 from olehermanse/linting
Handled CFRUserError in main.py
2 parents 7cb3125 + d2643dc commit 03ef6e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cf_remote/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from cf_remote.utils import (
99
CFRExitError,
1010
CFRProgrammerError,
11+
CFRUserError,
1112
exit_success,
1213
expand_list_from_file,
1314
is_file_string,
@@ -620,6 +621,8 @@ def main() -> int:
620621
r = _main()
621622
assert type(r) is int
622623
return r
624+
except CFRUserError as e:
625+
print("Error: " + str(e))
623626
except CFRExitError as e:
624627
print("Error: " + str(e))
625628
except (AssertionError, CFRProgrammerError) as e:

0 commit comments

Comments
 (0)