Remove unnecessary else after return

This commit is contained in:
didier
2021-03-07 11:59:09 +00:00
parent 64c9bb46db
commit 302baeb216

View File

@@ -293,8 +293,7 @@ def print_pretty_prediction(df_pred: pd.DataFrame, last_price: float):
def check_ohlc(type_ohlc: str) -> str:
if bool(re.match("^[ohlca]+$", type_ohlc)):
return type_ohlc
else:
raise argparse.ArgumentTypeError("The type specified is not recognized")
raise argparse.ArgumentTypeError("The type specified is not recognized")
def lett_to_num(word: str) -> str: