zulip/zerver
neiljp (Neil Pilgrim) 47de637c3d mirrors: Refactor create_mirrored_message_users to use new Exception.
This enables the function to either return a valid UserProfile or raise
InvalidMirrorInput, which is clearer and more pythonic than the previous
approach of a tuple of a bool and Optional[UserProfile].

In making the type clearer, this improves checking with mypy.

Tests updated.
2019-05-01 11:18:22 -07:00
..
data_import lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
lib export: Add a blank line in S3 upload output. 2019-04-30 16:37:23 -07:00
management lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
migrations settings: Create an explicit invite_to_stream_policy setting. 2019-04-29 17:11:28 -07:00
openapi settings: Create an explicit invite_to_stream_policy setting. 2019-04-29 17:11:28 -07:00
templatetags render_markdown_path: Convert dicts to dict item tuples for caching. 2019-04-22 13:53:18 -07:00
tests mirrors: Refactor create_mirrored_message_users to use new Exception. 2019-05-01 11:18:22 -07:00
tornado tornado: Remove unused imports. 2019-02-02 17:33:13 -08:00
views mirrors: Refactor create_mirrored_message_users to use new Exception. 2019-05-01 11:18:22 -07:00
webhooks webhooks: Add Buildbot integration. 2019-04-27 15:19:16 -07:00
worker public_export: Add backend API endpoint for triggering export. 2019-04-26 17:24:29 -07:00
__init__.py
apps.py python: Mark intentionally unused imports with noop statements. 2019-02-22 16:54:47 -08:00
context_processors.py mypy: Enable strict-optional for auth.py. 2019-05-01 10:49:25 -07:00
decorator.py webhooks: Remove the legacy GitHub integration. 2019-04-27 15:13:44 -07:00
filters.py filters: Don't include realm_counts/installation_counts in errors. 2019-04-30 14:10:59 -07:00
forms.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
logging_handlers.py try_git_describe: Set cwd, not --git-dir. 2019-02-28 14:59:33 -08:00
middleware.py html_to_text: Escape text when using as description. 2019-04-25 15:29:16 -07:00
models.py settings: Create an explicit invite_to_stream_policy setting. 2019-04-29 17:11:28 -07:00
signals.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
static_header.txt