catch attributeerror to fix upgrade issue
This commit is contained in:
parent
3eacd3e2d6
commit
c04ae40cf1
|
@ -315,9 +315,12 @@ class Manager:
|
||||||
# Save the uploaded data from this session to the existing upload memory
|
# Save the uploaded data from this session to the existing upload memory
|
||||||
for unique_ID in self.unique_IDs.keys():
|
for unique_ID in self.unique_IDs.keys():
|
||||||
# self.get_core_torrent_state purposefully not cached.
|
# self.get_core_torrent_state purposefully not cached.
|
||||||
self.unique_IDs[unique_ID].uploaded_memory = \
|
try:
|
||||||
|
self.unique_IDs[unique_ID].uploaded_memory = \
|
||||||
self.unique_IDs[unique_ID].initial_uploaded_memory + \
|
self.unique_IDs[unique_ID].initial_uploaded_memory + \
|
||||||
self.get_core_torrent_state(unique_ID, False)['total_upload']
|
self.get_core_torrent_state(unique_ID, False)['total_upload']
|
||||||
|
except AttributeError:
|
||||||
|
self.unique_IDs[unique_ID].initial_uploaded_memory = 0
|
||||||
|
|
||||||
# Preference management functions
|
# Preference management functions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue