diff options
Diffstat (limited to 'plugins/upload.py')
-rw-r--r-- | plugins/upload.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/upload.py b/plugins/upload.py index 0f9ef736..3b2b4075 100644 --- a/plugins/upload.py +++ b/plugins/upload.py @@ -38,10 +38,9 @@ class Plugin(BasePlugin): short='Upload a file', completion=self.completion_filename) - @asyncio.coroutine - def async_upload(self, filename): + async def async_upload(self, filename): try: - url = yield from self.core.xmpp['xep_0363'].upload_file(filename) + url = await self.core.xmpp['xep_0363'].upload_file(filename) except Exception: exception = traceback.format_exc() self.api.information('Failed to upload file: %s' % exception, 'Error') |