diff options
| author | Fulgen301 <tokmajigeorge@gmail.com> | 2019-09-08 21:54:28 +0200 |
|---|---|---|
| committer | Fulgen301 <tokmajigeorge@gmail.com> | 2019-09-08 22:12:32 +0200 |
| commit | 1f1358b3d8667d93c922dc14790d4d43d356a36d (patch) | |
| tree | 1ffc73d637d13228369697246bc8d3f148713e10 /handlers.py | |
| parent | 4470c6cd3e8ce4c972c3701fe541478f412efa8a (diff) | |
| download | parry-1f1358b3d8667d93c922dc14790d4d43d356a36d.tar.gz parry-1f1358b3d8667d93c922dc14790d4d43d356a36d.zip | |
Website: Fix locale reset
Diffstat (limited to 'handlers.py')
| -rw-r--r-- | handlers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/handlers.py b/handlers.py index c9f0e63..9f48349 100644 --- a/handlers.py +++ b/handlers.py @@ -71,6 +71,7 @@ class Website(Site): continue locale.setlocale(locale.LC_ALL, "C") + session.add(File( hash=calculateHashForResource(r).hexdigest(), id=entry.id, @@ -82,7 +83,7 @@ class Website(Site): upload=entry )) - locale.setlocale(locale.LC_ALL, "") + locale.resetlocale(locale.LC_ALL) r = requests.get(self.prefix + m["entryURL"]) d = self.regexes["desc"].match(r.text) |
