[Python-apps-team] Bug#589691: petit: Crash while parsing /var/log/syslog

Carl Chenet chaica at ohmytux.com
Tue Jul 20 01:27:13 UTC 2010


Package: petit
Version: 1.0.3-1
Severity: normal

Hi,

I have a crash while using --hash with the /var/log/syslog file :

bureau:~# petit --hash /var/log/syslog
Traceback (most recent call last):
  File "/usr/bin/petit", line 348, in <module>
    get_options(sys.argv[1:])
  File "/usr/bin/petit", line 135, in get_options
    hash(filename)
  File "/usr/bin/petit", line 164, in hash
    log = Log(args)
  File "/usr/share/petit/crunchtools.py", line 631, in __init__
    self.append(Entry(line))
  File "/usr/share/petit/crunchtools.py", line 87, in __init__
    self.hour, self.minute, self.second = clocktime.split(":") 
ValueError: need more than 1 value to unpack

Bye,
Carl Chenet

Blog: http://carlchenet.wordpress.com
Identi.ca: http://identi.ca/carlchenet

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages petit depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-support                1.0.3      automated rebuilding support for P

petit recommends no packages.

petit suggests no packages.

-- no debconf information





More information about the Python-apps-team mailing list