salimoha / googlecl

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

ImportError #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem: When trying to receive help documentation on a non-available service 
the script exits with an ImportError:

Solution: Catch unsupported commands verbosely ('service x not supported or 
command x not found') instead of dumping the error.

--------------
> help gmail
Traceback (most recent call last):
  File "C:\dev\Python\googlecl-0.9.7\src\google", line 463, in <module>
    main()
  File "C:\dev\Python\googlecl-0.9.7\src\google", line 454, in main
    run_interactive(parser)
  File "C:\dev\Python\googlecl-0.9.7\src\google", line 251, in run_interactive
    run_once(options, args)
  File "C:\dev\Python\googlecl-0.9.7\src\google", line 283, in run_once
    globals(), locals(), -1)
ImportError: No module named gmail.service
-------------

Original issue reported on code.google.com by raven.de...@gmail.com on 23 Jun 2010 at 10:13

GoogleCodeExporter commented 9 years ago
Excellent suggestion! So excellent, it's already been done. Check Issue 110 for 
a patch written by ferranb, or use the code in the repository.

Original comment by tom.h.mi...@gmail.com on 23 Jun 2010 at 1:47