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

Skip over printers with no PPD when trying to auth for the first time. #130

Closed
wants to merge 1 commit into from

Conversation

ShaneMcC
Copy link
Contributor

@ShaneMcC ShaneMcC commented Nov 1, 2016

If we try to auth with a printer with no PPD, we end up getting:

cups.IPPError: (1030, u'Not Found')

When we try to call the .ppd endpoint on the CUPS server (getPPD(printer_name)), which causes us to die with a non-useful error message.

With this change we will skip over any printers with no PPD file and auth with the first one that has one, if none are found then exit.

Possibly related to #126 and #123

If we try to auth with a printer with no PPD, we end up getting:

> cups.IPPError: (1030, u'Not Found')

When we try to call the .ppd endpoint on the CUPS server (getPPD(printer_name)), which causes us to die with a non-useful error message.

With this change we will skip over any printers with no PPD file and auth with the first one that has one.
@coveralls
Copy link

coveralls commented Nov 1, 2016

Coverage Status

Coverage decreased (-1.04%) to 50.893% when pulling 798e246 on ShaneMcC:master into 5c33ff3 on armooo:master.

@ShaneMcC
Copy link
Contributor Author

ShaneMcC commented Nov 1, 2016

It seems that travis won't let me see the build log to see what failed.

From testing locally, I think it's due to unrelated flake8 failure around line 340 (https://github.com/armooo/cloudprint/blob/master/cloudprint/cloudprint.py#L340):

cloudprint/cloudprint.py:340:17: W503 line break before binary operator

but this is outside the scope of this PR.

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

Successfully merging this pull request may close these issues.

2 participants