diff --git a/main.py b/main.py index 0c741a6..70357b2 100755 --- a/main.py +++ b/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")