Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Be more particular about catching IPPError exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Bernardino Alonso committed Mar 6, 2011
1 parent ef4da7c commit 41b19f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudprint/cloudprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def sync_printers(cups_connection, cpp):
pass
description = cups_connection.getPrinterAttributes(printer_name)['printer-info']
cpp.add_printer(printer_name, description, ppd)
except:
except cups.IPPError:
print 'Skipping ' + printer_name

#Existing printers
Expand Down

0 comments on commit 41b19f9

Please sign in to comment.