Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speakerlater.py python3 failed #2

Open
o3o3o opened this issue Dec 31, 2016 · 0 comments
Open

speakerlater.py python3 failed #2

o3o3o opened this issue Dec 31, 2016 · 0 comments

Comments

@o3o3o
Copy link

o3o3o commented Dec 31, 2016

Firstly, I face the problem: infinite recursion bug when func raises AttributeError.

Then I modified the speaklater.py with the diff.

here is errors:

raise RuntimeError("Suppressed AttributeError: " + str(e)) 
RuntimeError: Suppressed AttributeError: 'NullTranslations' object has no attribute 'ugettext'

The error code is here:

  def translate(self, message, _locale, plural_message=None, count=None):
      if plural_message is not None:
          assert count is not None
          # sefl.translations is NullTranslations
          return self.translations.ungettext(message, plural_message, count) 
      else:
          return self.translations.ugettext(message)

So, I think it is affected by the babel version. Now I am using Babel 2.3.4.

Could you tell me your Babel version, So I can get diff the old babel and new babel code. ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant