We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b40596 commit 6d19288Copy full SHA for 6d19288
c42seceventcli/aed/args.py
@@ -119,7 +119,11 @@ def verify_username_arg(self):
119
120
def verify_destination_args(self):
121
self.destination_type = self.destination_type.lower()
122
- self.destination_port = int(self.destination_port)
+ try:
123
+ self.destination_port = int(self.destination_port)
124
+ except ValueError:
125
+ msg = ("Destination port '{0}' not a base 10 integer.".format(self.destination_port))
126
+ self._raise_value_error(msg)
127
if self.destination_type == "stdout" and self.destination is not None:
128
msg = (
129
"Destination '{0}' not applicable for stdout. "
0 commit comments