mirror of
https://github.com/lubuntu-team/masspackagelp.git
synced 2025-03-04 02:11:06 +00:00
Add case for when the source package isn't found.
This commit is contained in:
parent
74504fe81d
commit
777acdee75
5
main.py
5
main.py
@ -21,5 +21,8 @@ with open(filepath, "r") as ins:
|
||||
for i in range(len(filearray)):
|
||||
print("Assigning:")
|
||||
print(filearray[i])
|
||||
lp.distributions['ubuntu'].getSourcePackage(name=filearray[i]).addBugSubscription(subscriber=lp.people[teamtowrite])
|
||||
try:
|
||||
lp.distributions['ubuntu'].getSourcePackage(name=filearray[i]).addBugSubscription(subscriber=lp.people[teamtowrite])
|
||||
except AttributeError:
|
||||
print("Source package not found.")
|
||||
print("Complete")
|
||||
|
Loading…
x
Reference in New Issue
Block a user