Skip to content
This repository has been archived by the owner on Dec 25, 2019. It is now read-only.

Commit

Permalink
Fix raise from compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
NyanKiyoshi committed Sep 16, 2018
1 parent c71f693 commit 7601bc3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ flask-wtf = "*"
flask-babel = "*"
flask-bootstrap-4-alpha = {ref = "fork", git = "https://github.com/NyanKiyoshi/flask-bootstrap-4-alpha"}
keyboard = "*"
six = "*"

[dev-packages]
pytest = "*"
Expand Down
13 changes: 11 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# Texrrow
<h1 align="center">Texrrow</h1>

<p align="center">
<a href="https://pypi.org/project/texrrow/">
<img src="https://img.shields.io/pypi/v/texrrow.svg" alt="PyPi Release" />
</a>
<a href="#">
<img src="https://img.shields.io/pypi/pyversions/texrrow.svg" alt="Python Versions" />
</a>
<a href="https://travis-ci.org/NyanKiyoshi/texrrow/">
<img src="https://travis-ci.org/NyanKiyoshi/texrrow.svg?branch=master" alt="Build Status" />
</a>
<a href="https://codecov.io/gh/NyanKiyoshi/texrrow/">
<img src="https://codecov.io/gh/NyanKiyoshi/texrrow/branch/master/graph/badge.svg" alt="Code Coverage" />
</a>
</p>

A simple python web-server to remotely control a LaTeX presentation from a mobile phone to give dynamic and powerful speeches.

## Development Usage
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ flask-babel
flask-bootstrap-4-alpha
flask-wtf
keyboard
six
5 changes: 4 additions & 1 deletion texrrow/core/utils/environ.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from six import raise_from
from os import environ

E_INVALID_BOOL = '%r is an invalid boolean value.'
Expand All @@ -7,7 +8,9 @@ def getenv_or_raise(name, error_message):
try:
return environ[name]
except KeyError as exc:
raise KeyError(error_message) from exc
exc_value = KeyError(error_message)
raise_from(KeyError(error_message), exc)
raise exc_value


def getenv_int(name, default=None):
Expand Down

0 comments on commit 7601bc3

Please sign in to comment.