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 878e3eb..f8d6ccb 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