Skip to content

Fixes bug when passing boolean to '-so' argument#3

Open
vpetkoff wants to merge 1 commit into
chriselswede:masterfrom
vpetkoff:master
Open

Fixes bug when passing boolean to '-so' argument#3
vpetkoff wants to merge 1 commit into
chriselswede:masterfrom
vpetkoff:master

Conversation

@vpetkoff

Copy link
Copy Markdown

Fixes exception when passing boolean values to '-so' argument:

Traceback (most recent call last):
File "hanasitter.py", line 1537, in
main()
File "hanasitter.py", line 1101, in main
std_out = int(sys.argv[sys.argv.index('-so') + 1])
ValueError: invalid literal for int() with base 10: 'false'

Fixes exception when passing boolean values to '-so' argument:

Traceback (most recent call last):
  File "hanasitter.py", line 1537, in <module>
    main()
  File "hanasitter.py", line 1101, in main
    std_out = int(sys.argv[sys.argv.index('-so') + 1])
ValueError: invalid literal for int() with base 10: 'false'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant