Improve error output.
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
*.log
|
||||||
*.pyc
|
*.pyc
|
||||||
/.last_file
|
/.last_file
|
||||||
|
/export.csv
|
||||||
/mosobjects.db3
|
/mosobjects.db3
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ msg.attach(att)
|
|||||||
|
|
||||||
#print(repr(clips))
|
#print(repr(clips))
|
||||||
print(msg.as_string())
|
print(msg.as_string())
|
||||||
|
|
||||||
p = Popen(["/usr/sbin/sendmail", "-oi", "markus.birth@weltn24.de", "sebastian.erb@weltn24.de"], stdin=PIPE)
|
p = Popen(["/usr/sbin/sendmail", "-oi", "markus.birth@weltn24.de", "sebastian.erb@weltn24.de"], stdin=PIPE)
|
||||||
p.communicate(msg.as_bytes())
|
p.communicate(msg.as_bytes())
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -68,8 +68,8 @@ for file in files_to_parse:
|
|||||||
except ET.ParseError as e:
|
except ET.ParseError as e:
|
||||||
print("ERROR parsing {}: {}".format(file, e), file=sys.stderr)
|
print("ERROR parsing {}: {}".format(file, e), file=sys.stderr)
|
||||||
break
|
break
|
||||||
except:
|
except Exception as e:
|
||||||
print("ERROR processing {}!".format(file), file=sys.stderr)
|
print("ERROR processing {} - {}!".format(file, e), file=sys.stderr)
|
||||||
break
|
break
|
||||||
|
|
||||||
db.finish()
|
db.finish()
|
||||||
|
|||||||
Reference in New Issue
Block a user