Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling negative values #2

Open
nevotens opened this issue Oct 29, 2017 · 1 comment
Open

Handling negative values #2

nevotens opened this issue Oct 29, 2017 · 1 comment

Comments

@nevotens
Copy link

If any value starts with "-" (e.g. "-52,7", "-a") pyfttt fails.

Se below:
Traceback (most recent call last):
File "/home/pi/Documents/kutahaz.py", line 101, in
temp, humi, temp_k])
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pyfttt', '-k', '
', '-e', '**', '19,5', '-52,7', '-a']' returned non-zero exit status 2

@briandconnelly
Copy link
Owner

briandconnelly commented Oct 29, 2017

Strange! I'll try this out in the next few days and get it fixed.

Edit: I encountered the same error. See https://stackoverflow.com/questions/9025204/python-argparse-issue-with-optional-arguments-which-are-negative-numbers.

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

No branches or pull requests

2 participants