Skip to content

Commit

Permalink
[i18n] Fix load_libintl error
Browse files Browse the repository at this point in the history
Fixed libintl being undefined if no library was found
  • Loading branch information
cas-- committed Jan 12, 2022
1 parent c3cd7f5 commit d2390cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deluge/i18n/util.py
Expand Up @@ -114,6 +114,7 @@ def setup_translation():

def load_libintl(libintls):
errors = []
libintl = None
for library in libintls:
try:
libintl = ctypes.cdll.LoadLibrary(library)
Expand Down

0 comments on commit d2390cd

Please sign in to comment.