-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fixed Errors! #1209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ShafiqSadat
wants to merge
19
commits into
dronekit:master
Choose a base branch
from
ShafiqSadat:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fixed Errors! #1209
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a3f3c9d
Update __init__.py
ShafiqSadat 40c074c
Fixed Error (WARNING:autopilot:got MISSION_REQUEST; use MISSION_REQUE…
ShafiqSadat 8bc3cef
Fixed exception when UDP connection was forcibly closed.
ShafiqSadat 8e89a9c
Update setup.py
ShafiqSadat 72ec5d7
Fixed the encoding error for Python 3.x.
ShafiqSadat a788e3b
Create python-publish.yml
ShafiqSadat 397f510
Update README.md
ShafiqSadat 3da4e3b
Update README.md
ShafiqSadat 6be1b40
Fixed the issue where the exception was being displayed twice when th…
ShafiqSadat f5670a1
Fixed the issue where the exception was being displayed twice when th…
ShafiqSadat 4b2f63a
Channels: fix wrong key type
ShafiqSadat d8b0faf
Changed MISSION_ITEM into MISSION_ITEM_INT
ShafiqSadat 7c17926
Update setup.py
ShafiqSadat e52e4be
Update __init__.py
ShafiqSadat 0b7bbc5
Update __init__.py
ShafiqSadat 2e37ebe
Update __init__.py
ShafiqSadat ae043d1
Fixed got MISSION_REQUEST; use MISSION_REQUEST_INT!
ShafiqSadat 0961d9b
Merge branch 'master' into master
ShafiqSadat ccf1510
Update mavlink.py
ShafiqSadat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,10 @@ def recv(self, n=None): | |
if e.errno in [errno.EAGAIN, errno.EWOULDBLOCK, errno.ECONNREFUSED]: | ||
return "" | ||
if self.udp_server: | ||
self.addresses.add(new_addr) | ||
try: | ||
self.addresses.add(new_addr) | ||
except: | ||
return "" | ||
ShafiqSadat marked this conversation as resolved.
Show resolved
Hide resolved
|
||
elif self.broadcast: | ||
self.addresses = {new_addr} | ||
return data | ||
|
@@ -245,7 +248,8 @@ def mavlink_thread_in(): | |
) | ||
|
||
except APIException as e: | ||
self._logger.exception('Exception in MAVLink input loop') | ||
#self._logger.exception('Exception in MAVLink input loop') | ||
self._logger.warning('%s' % str(e)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks wrong |
||
self._alive = False | ||
self.master.close() | ||
self._death_error = e | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is strange