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

Commit

Permalink
support missing supported_mimetypes if base class initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Jul 1, 2014
1 parent 7e542dd commit f3359d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jac/compilers/__init__.py
Expand Up @@ -8,7 +8,7 @@ class CompilerMeta(type):
"""
def __new__(meta, name, bases, attrs):
cls = type.__new__(meta, name, bases, attrs)
for m in attrs['supported_mimetypes']:
for m in attrs.get('supported_mimetypes', []):
if m in compilers:
raise RuntimeError('For now, just one compiler by mimetype')
compilers[m] = cls
Expand Down

0 comments on commit f3359d6

Please sign in to comment.