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

petit: traceback if reading file fails due to permission errors #1

Open
GoogleCodeExporter opened this issue Mar 4, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

A Debian user (Michael Prokop <[email protected]>) encountered a bug with Petit : 

-----8<-----

Package: petit
Version: 1.0.3-1
Severity: normal


% petit --hash  ~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 620, in __init__
    buffer = self.open_file(filename)
  File "/usr/share/petit/crunchtools.py", line 649, in open_file
    f = open(filename)                         
IOError: [Errno 13] Permission denied: '/var/log/syslog'

According exception handling without displaying the
traceback to the user would be nice. :)

regards,
-mika-

-----8<-----
The complete Debian bug report is available here : 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588900

Best regards,
Carl Chenet - Debian maintainer

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

Original issue reported on code.google.com by [email protected] on 15 Jul 2010 at 1:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant