julianobarbosa / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Invalid calenar time range (i.e. 10pm to 4pm) raises uninformative exception #490

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. google calendar add "August 31st Storage 10pm to 4pm"
2. Produces stack trace

What is the expected output? What do you see instead?
Expected: A friendly validation message
Output: 
$ google calendar add "August 31 10pm to 4pm Storage"                           

        (1) ~
Traceback (most recent call last):
  File "/usr/bin/google", line 849, in <module>
    main()
  File "/usr/bin/google", line 835, in main
    run_once(options, args)
  File "/usr/bin/google", line 633, in run_once
    raise run_error
AttributeError: 'NoneType' object has no attribute 'href'

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
0.9.13 / Fedora 16

Please provide any additional information below.

This is a really minor issue. Thought I'd just throw it out there because the 
reference to "href" makes it seem like it might be a connection issue. Thanks 
for the great software!

Original issue reported on code.google.com by louis...@gmail.com on 4 Aug 2012 at 4:29

GoogleCodeExporter commented 9 years ago
Ergh. "Invalid calendar* time range."

Original comment by louis...@gmail.com on 4 Aug 2012 at 4:29

GoogleCodeExporter commented 9 years ago
Change to:

google calendar add "August 31st Storage 4pm to 10pm"

Original comment by szy...@endpoint.com on 29 Dec 2012 at 9:35

GoogleCodeExporter commented 9 years ago
Why is this a wontfix?  A program should gracefully deal with bad input.

Original comment by torsten....@gmail.com on 16 Sep 2013 at 7:29