owm.py: import sys
authorgregor herrmann <gregor@toastfreeware.priv.at>
Wed, 13 Jun 2018 17:34:02 +0000 (19:34 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Wed, 13 Jun 2018 17:34:02 +0000 (19:34 +0200)
used in sys.exit() in an error case

owm.py

diff --git a/owm.py b/owm.py
index 878e3eba8c1dac4b37072189fcbd5f5b87b5ecea..f8d6ccbe065cdbc810fd40435e342ac5fce865b8 100755 (executable)
--- a/owm.py
+++ b/owm.py
@@ -14,6 +14,7 @@ import os
 import csv
 import datetime
 import math
+import sys
 
 baseurl = 'http://api.openweathermap.org/data/2.5/weather'
 debug = False