teerytko / python-video4linux2

Automatically exported from code.google.com/p/python-video4linux2
0 stars 0 forks source link

SetStandard error broken #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
./recordpics.py 
Traceback (most recent call last):
  File "./recordpics.py", line 94, in <module>
    Run()
  File "./recordpics.py", line 52, in Run
    d.SetStandard( d.standards['NTSC'] )
  File "/home/novalis/c/ff/ve/python-video4linux2-read-only/pyv4l2.py",
line 467, in SetStandard
    lib.Error()
TypeError: int argument required

This is because your format string says  %i for the name of the standard --
it should be:
        raise Exception('Could not set standard %s:\t%i: %s' % 

Original issue reported on code.google.com by david.no...@gmail.com on 1 Feb 2009 at 1:01