Skip to content

Commit

Permalink
None check (#103)
Browse files Browse the repository at this point in the history
* support limit object

* support limit object

* support limit object

* None check
  • Loading branch information
chkp-edenbr authored Oct 20, 2024
1 parent c51d801 commit 4c72ab3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion import_export_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_version(client):
if sys.version_info < (3, 7):
raise Exception("Min Python version required is 3.7")

arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V6.1.0")
arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V6.2.0")
args = process_arguments(arg_parser)
if args.force:
args.unsafe_auto_accept = True
Expand Down
7 changes: 4 additions & 3 deletions menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ def __init__(self, args):
self.build()

def display(self):
Menu.menu_print(self.title, 1)
for i in range(1, len(self.options)):
self.menu_print(str(i) + ". " + self.options[i - 1], 0)
if self.title:
Menu.menu_print(self.title, 1)
if self.options:
for i in range(1, len(self.options)):
self.menu_print(str(i) + ". " + self.options[i - 1], 0)
self.menu_print(str(len(self.options)) + ". " + self.options[len(self.options) - 1], 1)
self.menu_print("99. " + self.last_option, 0)
self.handle_input()
Expand Down

0 comments on commit 4c72ab3

Please sign in to comment.