Skip to content

Commit

Permalink
Put tz get_localzone in trycatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jskiba99 committed Aug 11, 2017
1 parent 233bc92 commit 725bd53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ElasticBurp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) ###
Expand Down

0 comments on commit 725bd53

Please sign in to comment.