You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Load up a python console
2.5. Import the library (from pyluach import dates, parshios, hebrewcal)
Create a today variable (e.g. today = dates.HebrewDate.today() )
Call the function e.g. parshios.getparsha_string(today)
Expected Behavior:
Returns a string of the parsha
Actual Behavior:
Throws the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/menachem/.local/lib/python3.5/site-packages/pyluach/parshios.py", line 137, in getparsha_string
if parsha is None:
UnboundLocalError: local variable 'parsha' referenced before assignment
Proposed Solution:
Move line 139 above line 137 so that parsha is assigned before the check.
mhornbacher
changed the title
parshios.getparsha_string: Parsha variable is referenced before assignment.
parshios.getparsha_string(): Parsha variable is referenced before assignment.
Sep 26, 2017
mhornbacher
changed the title
parshios.getparsha_string(): Parsha variable is referenced before assignment.
parshios.getparsha_string(): parsha variable is referenced before assignment.
Sep 26, 2017
mhornbacher
changed the title
parshios.getparsha_string(): parsha variable is referenced before assignment.
parshios.getparsha_string(): Parsha variable is referenced before assignment.
Sep 26, 2017
Good morning,
I noticed an issue with the new update:
Steps to Reproduce:
2.5. Import the library (
from pyluach import dates, parshios, hebrewcal
)today = dates.HebrewDate.today()
)parshios.getparsha_string(today)
Expected Behavior:
Returns a string of the parsha
Actual Behavior:
Throws the following error:
Proposed Solution:
Move line 139 above line 137 so that
parsha
is assigned before the check.Notes
Already fixed in
dev
branchLine location:
pyluach/pyluach/parshios.py
Line 137 in 00f415f
The text was updated successfully, but these errors were encountered: