summaryrefslogtreecommitdiff
path: root/pygments/formatters/__init__.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-10 19:33:20 +0100
committerGeorg Brandl <georg@python.org>2014-11-10 19:33:20 +0100
commit02217d4da9afd61b258265b62a755280990fb3e9 (patch)
tree95570e21a4eb2e89b46a804a0e488f506b815a57 /pygments/formatters/__init__.py
parentc1b7740fb6cdf8fe970883bb74986eeb0bac0645 (diff)
downloadpygments-02217d4da9afd61b258265b62a755280990fb3e9.tar.gz
Fix leftover debugging "raise". Add test coverage for errors and exceptions in cmdline_main.
Diffstat (limited to 'pygments/formatters/__init__.py')
-rw-r--r--pygments/formatters/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/formatters/__init__.py b/pygments/formatters/__init__.py
index 45ceaff6..22eb64c7 100644
--- a/pygments/formatters/__init__.py
+++ b/pygments/formatters/__init__.py
@@ -75,7 +75,7 @@ def get_formatter_by_name(_alias, **options):
"""
cls = find_formatter_class(_alias)
if cls is None:
- raise ClassNotFound("No formatter found for name %r" % _alias)
+ raise ClassNotFound("no formatter found for name %r" % _alias)
return cls(**options)
@@ -95,7 +95,7 @@ def get_formatter_for_filename(fn, **options):
for filename in cls.filenames:
if _fn_matches(fn, filename):
return cls(**options)
- raise ClassNotFound("No formatter found for file name %r" % fn)
+ raise ClassNotFound("no formatter found for file name %r" % fn)
class _automodule(types.ModuleType):