]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - owm.py
trailing whitespace
[chrisu/seepark.git] / owm.py
diff --git a/owm.py b/owm.py
index 3265f208da5a20046eee5ec352c3f286c21c5303..5d5a77c9d64ae338e7a545c6748b689bbdec4133 100755 (executable)
--- a/owm.py
+++ b/owm.py
@@ -91,7 +91,7 @@ def write_db(config, url, weather_json, weather_data):
     sql = 'insert ignore into openweathermap ({}) values ({})'.format(', '.join(sql_columns), ','.join(['%s'] * len(sql_columns)))
     with warnings.catch_warnings():
         # ignore _mysql_exceptions.Warning: Duplicate entry '3319578-2018-08-01 20:50:00' for key 'cityid_datetime'
-        warnings.simplefilter("ignore", category=MySQLdb.cursors.Warning)  
+        warnings.simplefilter("ignore", category=MySQLdb.cursors.Warning)
         conn.execute(sql, *sql_values)
     conn.close()