From 563f843276c63de799845612fe2ce20babed07b6 Mon Sep 17 00:00:00 2001 From: Joshua Rose Date: Sat, 3 Jun 2023 10:47:49 +1000 Subject: [PATCH] fix: `NameError` bug for multiple params on input This commit fixes the #67 error. Issue: #67 Authored-by: Joshua Rose --- urban/__main__.py | 4 ++-- urban/urban_api.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/urban/__main__.py b/urban/__main__.py index ee2c04e..a6aa188 100644 --- a/urban/__main__.py +++ b/urban/__main__.py @@ -45,13 +45,13 @@ def main(): logger.debug("Instantiating parser object from `return_argument_parser()`") parser: ArgumentParser = return_argument_parser() - logger.debug("Adding commands to parser (cols, word, result)") - # Add argument groups output_group = parser.add_argument_group( "output", "configure and customize console output" ) + # logger.debug("Adding commands to parser (cols, word, result)") + # Add commands to output add_word_argument(parser) add_result_argument(parser) diff --git a/urban/urban_api.py b/urban/urban_api.py index a98c029..7726eb6 100644 --- a/urban/urban_api.py +++ b/urban/urban_api.py @@ -36,6 +36,7 @@ import requests from urban_exceptions import InvalidStatusCodeError, InvalidWordError +from urban_utils import make_soup_from_response def apply_word_to_url(word: str) -> str: