<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -176,7 +176,7 @@ def _do_poheaders(input_store, output_store, template_store):
     plural_forms = None
     kwargs = {}
 
-    if template_store is not None:
+    if template_store is not None and isinstance(template_store, poheader.poheader):
         templateheadervalues = template_store.parseheader()
         for key, value in templateheadervalues.iteritems():
             if key == &quot;Project-Id-Version&quot;:</diff>
      <filename>convert/pot2po.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>51181ad35d1eb8a0046a6807028c800757233a86</id>
    </parent>
  </parents>
  <author>
    <name>alaaosh</name>
    <email>alaaosh@54714841-351b-0410-a198-e36a94b762f5</email>
  </author>
  <url>http://github.com/translateorgza/translate/commit/373de82ce0f91ebc6e244028f599aae3164c34c8</url>
  <id>373de82ce0f91ebc6e244028f599aae3164c34c8</id>
  <committed-date>2009-03-19T06:11:22-07:00</committed-date>
  <authored-date>2009-03-19T06:11:22-07:00</authored-date>
  <message>don't assume template_store supports poheader just because input_store
supports it.

never assume cause when u ASSUME you make an ASS of U and ME



git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/translate@10604 54714841-351b-0410-a198-e36a94b762f5</message>
  <tree>c8b03eb3f9ce0d9e553a6df6493bb9a504a82405</tree>
  <committer>
    <name>alaaosh</name>
    <email>alaaosh@54714841-351b-0410-a198-e36a94b762f5</email>
  </committer>
</commit>
