git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-09-28 13:26:00 +0200
committerHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-09-28 13:26:00 +0200
commit18e869b34511fcbf63587f4dfc738448a79f527e (patch)
tree497c0656cc462004efbc4dcc351860e4d1700092
parent34530390f643860f09c2387717c9e52d4889e757 (diff)
downloadtimewarrior-holidays-18e869b34511fcbf63587f4dfc738448a79f527e.tar.bz2
Fixed wrong references
-rwxr-xr-xrefresh4
1 files changed, 2 insertions, 2 deletions
diff --git a/refresh b/refresh
index 5689f2a..dd94f80 100755
--- a/refresh
+++ b/refresh
@@ -58,13 +58,13 @@ def hfetch(locode, year):
This function downloads the holiday data for a given ISO-3166 code from holidata.net
It will return a single string containing all of the JSON.
"""
+ lines = ""
myurl = "https://holidata.net/" + locode + "/" + year + ".json"
try:
lines = urlopen(myurl).read().decode('utf-8')
except HTTPError as httpe:
if httpe.code == 404:
- print("holidata.net does not have data for %s(%s), for %d." % (mylocale, myregion,
- mydate))
+ print("holidata.net does not have data for %s, for %s." % (locode, year))
else:
print(httpe.code, httpe.read())
return lines