Remove empty except (#887)

This commit is contained in:
josephbiko
2018-07-09 20:54:43 +02:00
committed by Lonami
parent 4328663c78
commit e6981e7676
4 changed files with 17 additions and 8 deletions

View File

@@ -210,7 +210,10 @@ class UpdateMethods(UserMethods):
continue # We actually just want to act upon timeout
except asyncio.TimeoutError:
pass
except:
except asyncio.CancelledError:
await self.disconnect()
return
except Exception as e:
continue # Any disconnected exception should be ignored
# We also don't really care about their result.
@@ -273,7 +276,7 @@ class UpdateMethods(UserMethods):
type(event).__name__)
)
break
except:
except Exception:
__log__.exception('Unhandled exception on {}'
.format(callback.__name__))