Permalink
Browse files

Show error message on invalid code

  • Loading branch information...
simoncadman committed Oct 17, 2013
1 parent 0a75463 commit 9192b09dc3c1df5123217a182858db4db556fcd3
Showing with 10 additions and 10 deletions.
  1. +2 −2 auth.py
  2. +1 −1 backend.py
  3. +1 −1 deleteaccount.py
  4. +1 −1 dynamicppd.py
  5. +1 −1 listcloudprinters.py
  6. +1 −1 reportissues.py
  7. +1 −1 setupcloudprint.py
  8. +1 −1 submitjob.py
  9. +1 −1 upgrade.py
View
@@ -103,8 +103,8 @@ def AddAccount(storage, userid=None): # pragma: no cover
except:
sys.stderr.write("DEBUG: Cannot alter file permissions\n")
return credentials
- except:
- print("\nThe code does not seem to be valid, please try again.\n")
+ except Exception as e:
+ print("\nThe code does not seem to be valid ( " + str(e) + " ), please try again.\n")
AddAccount = staticmethod(AddAccount)
View
@@ -20,7 +20,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print CUPS Backend Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Delete Account Script Version " + CCPVersion
sys.exit(0)
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Dynamic PPD Generator Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Printer Lister Version " + CCPVersion
sys.exit(0)
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Issue Reporting Script Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Setup Script Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Submit Job Version " + CCPVersion
sys.exit(0)
View
@@ -22,7 +22,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20131017 211222"
+ CCPVersion = "20131017 220257"
print "CUPS Cloud Print Upgrade Script Version " + CCPVersion
sys.exit(0)

0 comments on commit 9192b09

Please sign in to comment.