Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
fix one failing test: source_file can be None
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoflow committed Nov 1, 2011
1 parent 621b99b commit c5c9ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/five/pt/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def cook(cls, source_file, text, engine, content_type):
expression_types = cls.expression_types

# BBB: Support CMFCore's FSPagetemplateFile formatting
if source_file.startswith('file:'):
if source_file is not None and source_file.startswith('file:'):
source_file = source_file[5:]

template = ChameleonPageTemplate(
Expand Down

0 comments on commit c5c9ccb

Please sign in to comment.