Skip to content

Commit

Permalink
main fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreax79 committed May 24, 2022
1 parent 7331576 commit 0e4c371
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gluettalax.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from urllib.parse import urlparse

__author__ = 'Andrea Bonomi <andrea.bonomi@gmail.com>'
__version__ = '1.1.1'
__version__ = '1.1.2'
__all__ = [
'CrawlerTimeout',
'GluettalaxException',
Expand Down Expand Up @@ -836,7 +836,9 @@ def lookup_cmd(cmd):
raise GluettalaxCommandNotFound('Invalid command "{}"; use "help" for a list.'.format(cmd))


def main(argv):
def main(argv=None):
if argv is None:
argv = sys.argv
if len(argv) < 2:
cmd_help(argv[1:])
return 2
Expand Down

0 comments on commit 0e4c371

Please sign in to comment.