fixup! Fix bad error code handling

master
LEdoian 9 months ago
parent e81844b6a6
commit 341186773a

@ -7,7 +7,7 @@ from datetime import datetime
from dataclasses import dataclass from dataclasses import dataclass
from collections import defaultdict from collections import defaultdict
from pathlib import Path from pathlib import Path
import sys import traceback
api_url = r'https://review.video.fosdem.org/api/v1/event/1/overview' api_url = r'https://review.video.fosdem.org/api/v1/event/1/overview'
poll_rate = 10*60 # seconds poll_rate = 10*60 # seconds
@ -56,7 +56,7 @@ def main():
ts.jobstates |= jobstates.keys() ts.jobstates |= jobstates.keys()
except RuntimeError as e: except RuntimeError as e:
print('Could not get/save data.') print('Could not get/save data.')
sys.print_exc() traceback.print_exc()
# Save the pickle # Save the pickle
# Should probably save elsewhere and do atomic rename, but whatever. # Should probably save elsewhere and do atomic rename, but whatever.

Loading…
Cancel
Save