Skip to content

Commit

Permalink
fix: sys.exit if KeyboardInterrupt instead of pass
Browse files Browse the repository at this point in the history
  • Loading branch information
arzkar committed Jul 12, 2023
1 parent f4c19ca commit ad9d0cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fichub_cli/utils/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import typer
import sys
from tqdm import tqdm
from colorama import Fore
from loguru import logger
Expand Down Expand Up @@ -128,7 +129,7 @@ def get_fic_with_infile(self, infile: str):
"No new urls found! If output.log exists, please clear it.")

except KeyboardInterrupt:
pass
sys.exit(2)

finally:
if self.changelog:
Expand Down Expand Up @@ -210,7 +211,7 @@ def get_fic_with_list(self, list_url: str):
"No new urls found! If output.log exists, please clear it.")

except KeyboardInterrupt:
pass
sys.exit(2)

finally:
if self.changelog:
Expand Down

0 comments on commit ad9d0cb

Please sign in to comment.