Sonosus / kmgenerator

Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Can't create a second PR #12

Open ghost opened 2 years ago

ghost commented 2 years ago

I have a PR open, but I have a couple new modules, so I tried running your script again and it failed:

Starting pull request on GitHub...
Traceback (most recent call last):
  File "fetchuuid.py", line 160, in <module>
    pr = repo.create_pull(pr_title, pr_message, "main", '{}:{}'.format(username, 'main'), False)
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Repository.py", line 1348, in create_pull
    return self.__create_pull_1(*args, **kwds)
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Repository.py", line 1370, in __create_pull_1
    return self.__create_pull(
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Repository.py", line 1392, in __create_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "PullRequest", "code": "custom", "message": "A pull request already exists for holmesrichards:main."}], "documentation_url": "https://docs.github.com/rest/reference/pulls#create-a-pull-request"}
rsholmes@rich-holmes-desktop:~/Documents/Hobbies/Music/Instruments/Synths/Kosmodular Grid/kmgenerator (updates)$