From 725bd53f6d108b7f3f198eac9392342261b54cba Mon Sep 17 00:00:00 2001 From: Jacob Skiba Date: Fri, 11 Aug 2017 17:31:55 -0400 Subject: [PATCH] Put tz get_localzone in trycatch --- ElasticBurp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ElasticBurp.py b/ElasticBurp.py index 4229002..8397723 100644 --- a/ElasticBurp.py +++ b/ElasticBurp.py @@ -26,7 +26,10 @@ from tzlocal import get_localzone import re -tz = get_localzone() +try: + tz = get_localzone() +except: + tz = None reDateHeader = re.compile("^Date:\s*(.*)$", flags=re.IGNORECASE) ### Config (TODO: move to config tab) ###