diff options
| author | H. P. <harald.p.@xmart.de> | 2018-09-28 13:26:00 +0200 |
|---|---|---|
| committer | H. P. <harald.p.@xmart.de> | 2018-09-28 13:26:00 +0200 |
| commit | 18e869b34511fcbf63587f4dfc738448a79f527e (patch) | |
| tree | 497c0656cc462004efbc4dcc351860e4d1700092 | |
| parent | 34530390f643860f09c2387717c9e52d4889e757 (diff) | |
| download | timewarrior-holidays-18e869b34511fcbf63587f4dfc738448a79f527e.tar.bz2 | |
Fixed wrong references
| -rwxr-xr-x | refresh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
